From 9b5d983a9a0f6c4b8e4f22cfa1b96ab3c22322e0 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Tue, 14 Jun 2022 11:35:59 +0800 Subject: [PATCH] docs: advise using Node 18 in deployment --- .../create-docusaurus/templates/shared/docs/intro.md | 2 +- website/docs/deployment.mdx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/create-docusaurus/templates/shared/docs/intro.md b/packages/create-docusaurus/templates/shared/docs/intro.md index 500260230bfc..8a2e69d95f9f 100644 --- a/packages/create-docusaurus/templates/shared/docs/intro.md +++ b/packages/create-docusaurus/templates/shared/docs/intro.md @@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new ### What you'll need -- [Node.js](https://nodejs.org/en/download/) version 14 or above: +- [Node.js](https://nodejs.org/en/download/) version 16.14 or above: - When installing Node.js, you are recommended to check all checkboxes related to dependencies. ## Generate a new site diff --git a/website/docs/deployment.mdx b/website/docs/deployment.mdx index d537b7b48d58..3d49abb23ecc 100644 --- a/website/docs/deployment.mdx +++ b/website/docs/deployment.mdx @@ -398,7 +398,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - name: Install dependencies @@ -441,7 +441,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - name: Install dependencies @@ -495,7 +495,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - name: Install dependencies run: yarn install --frozen-lockfile @@ -508,7 +508,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - uses: webfactory/ssh-agent@v0.5.0 with: @@ -543,7 +543,7 @@ Continuous integration (CI) services are typically used to perform routine tasks ```yml title=".travis.yml" language: node_js node_js: - - '14.15.0' + - 18 branches: only: - main @@ -602,7 +602,7 @@ steps: - task: NodeTool@0 inputs: - versionSpec: 14.x + versionSpec: '18' displayName: Install Node.js - script: |