Skip to content

Commit

Permalink
build(node): bump node version to v20 (latest LTS) (#8381)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
benelan authored Dec 8, 2023
1 parent 30ed585 commit bfdf5c5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
token: ${{ secrets.ADMIN_TOKEN }}
ref: main
- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: package.json
registry-url: "https://registry.npmjs.org"
- name: Build Packages and Publish to NPM
if: ${{ steps.release.outputs.releases_created }}
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/pr-tests_eslint-plugin-calcite-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version-file: package.json
- name: npm install, build, and test
run: |
npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-next-changelog-entries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version-file: package.json
- name: Remove Next Changelog Entries
run: |
git pull
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-browserslist-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: lts/*
node-version-file: package.json
cache: npm
- name: Run update-browserslist-db
run: |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"overrides": {
"@jest/transform": "29.7.0"
},
"packageManager": "npm@9.8.1",
"packageManager": "npm@10.2.3",
"volta": {
"node": "18.18.2"
"node": "20.10.0"
}
}

0 comments on commit bfdf5c5

Please sign in to comment.