docs: advise using Node 18 in deployment (#7611)

This commit is contained in:
Joshua Chen 2022-06-14 11:46:13 +08:00 committed by GitHub
parent fb3138d722
commit 56e7c3102e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new
### What you'll need ### 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. - When installing Node.js, you are recommended to check all checkboxes related to dependencies.
## Generate a new site ## Generate a new site

View file

@ -398,7 +398,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16.x node-version: 18
cache: yarn cache: yarn
- name: Install dependencies - name: Install dependencies
@ -441,7 +441,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16.x node-version: 18
cache: yarn cache: yarn
- name: Install dependencies - name: Install dependencies
@ -495,7 +495,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16.x node-version: 18
cache: yarn cache: yarn
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
@ -508,7 +508,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16.x node-version: 18
cache: yarn cache: yarn
- uses: webfactory/ssh-agent@v0.5.0 - uses: webfactory/ssh-agent@v0.5.0
with: with:
@ -543,7 +543,7 @@ Continuous integration (CI) services are typically used to perform routine tasks
```yml title=".travis.yml" ```yml title=".travis.yml"
language: node_js language: node_js
node_js: node_js:
- '14.15.0' - 18
branches: branches:
only: only:
- main - main
@ -602,7 +602,7 @@ steps:
- task: NodeTool@0 - task: NodeTool@0
inputs: inputs:
versionSpec: 14.x versionSpec: '18'
displayName: Install Node.js displayName: Install Node.js
- script: | - script: |