From d566e8ef2cc78c29ebf061d7a3aefa17d2475f33 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 23 Jan 2024 19:33:01 +0100 Subject: [PATCH] build: use Node.js v20 LTS (#494) * build: use Node.js v20 LTS * chore: remove Node.js step name --- .github/workflows/build-and-deploy.yml | 2 +- .github/workflows/pull-request.yml | 5 ++--- .github/workflows/push-main.yml | 5 ++--- .github/workflows/update-docs-branch.yml | 2 +- .github/workflows/update-docs.yml | 2 +- .github/workflows/update-i18n-deploy.yml | 3 +-- .nvmrc | 2 +- package.json | 2 +- 8 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 8c275305e..8c6987f62 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 with: - node-version: 16 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@8add8c6d2c8586964896d9fdc639e021312a643f # tag: v1.8.28 - name: Test diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 8d09a0689..1404e5781 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -15,10 +15,9 @@ jobs: steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0 - - name: Use Node.js 16 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 + - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 with: - node-version: 16 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@8add8c6d2c8586964896d9fdc639e021312a643f # tag: v1.8.28 diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index cf03c2c86..5c966e1c9 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -17,10 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0 - - name: Use Node.js 16 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 + - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 with: - node-version: 16 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@8add8c6d2c8586964896d9fdc639e021312a643f # tag: v1.8.28 - name: Upload sources to Crowdin diff --git a/.github/workflows/update-docs-branch.yml b/.github/workflows/update-docs-branch.yml index 5aefab62b..5a22dae87 100644 --- a/.github/workflows/update-docs-branch.yml +++ b/.github/workflows/update-docs-branch.yml @@ -19,7 +19,7 @@ jobs: run: git fetch origin && git checkout -t origin/v${{ github.event.client_payload.branch}} || git checkout -b v${{ github.event.client_payload.branch}} - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 with: - node-version: 16 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@8add8c6d2c8586964896d9fdc639e021312a643f # tag: v1.8.28 - name: 'Prebuild' diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 52e0b4fc3..6195f38cd 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 with: - node-version: 16 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@8add8c6d2c8586964896d9fdc639e021312a643f # tag: v1.8.28 - name: 'Prebuild' diff --git a/.github/workflows/update-i18n-deploy.yml b/.github/workflows/update-i18n-deploy.yml index 8866dad78..14ab30c1a 100644 --- a/.github/workflows/update-i18n-deploy.yml +++ b/.github/workflows/update-i18n-deploy.yml @@ -14,8 +14,7 @@ jobs: steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag: v3.3.0 - - name: Use Node.js 16 - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 + - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0 with: node-version: 16 diff --git a/.nvmrc b/.nvmrc index cb406c60c..8b0beab16 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.20.2 +20.11.0 diff --git a/package.json b/package.json index 7893cdaa3..87a387fde 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "license": "Apache-2.0", "engines": { - "node": "16" + "node": "20" }, "scripts": { "crowdin": "crowdin",