Skip to content

Commit bfdf5c5

Browse files
authored
build(node): bump node version to v20 (latest LTS) (#8381)
## Summary - Bump Volta's pinned Node version to v20 (latest LTS). - Make sure all of the GitHub Action workflows are using the Node version pinned by Volta.
1 parent 30ed585 commit bfdf5c5

5 files changed

+11
-14
lines changed

.github/workflows/deploy-latest.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ jobs:
2626
token: ${{ secrets.ADMIN_TOKEN }}
2727
ref: main
2828
- name: Setup Node
29+
if: ${{ steps.release.outputs.releases_created }}
2930
uses: actions/setup-node@v3
3031
with:
31-
node-version: 18
32+
node-version-file: package.json
3233
registry-url: "https://registry.npmjs.org"
3334
- name: Build Packages and Publish to NPM
3435
if: ${{ steps.release.outputs.releases_created }}

.github/workflows/pr-tests_eslint-plugin-calcite-components.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
15-
strategy:
16-
matrix:
17-
node-version: [16.x]
18-
1914
steps:
20-
- uses: actions/checkout@v1
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
15+
- name: Checkout Repository
16+
uses: actions/checkout@v3
17+
- name: Setup Node
18+
uses: actions/setup-node@v3
2319
with:
24-
node-version: ${{ matrix.node-version }}
20+
node-version-file: package.json
2521
- name: npm install, build, and test
2622
run: |
2723
npm install

.github/workflows/remove-next-changelog-entries.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: 16
21+
node-version-file: package.json
2222
- name: Remove Next Changelog Entries
2323
run: |
2424
git pull

.github/workflows/update-browserslist-db.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fetch-depth: 0
1313
- uses: actions/setup-node@v3
1414
with:
15-
node-version: lts/*
15+
node-version-file: package.json
1616
cache: npm
1717
- name: Run update-browserslist-db
1818
run: |

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
"overrides": {
117117
"@jest/transform": "29.7.0"
118118
},
119-
"packageManager": "npm@9.8.1",
119+
"packageManager": "npm@10.2.3",
120120
"volta": {
121-
"node": "18.18.2"
121+
"node": "20.10.0"
122122
}
123123
}

0 commit comments

Comments
 (0)