From dff79c2ca9a1e64dfa4e6772889f63339bbac73d Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Fri, 8 Dec 2023 12:37:46 -0800 Subject: [PATCH] build(node): bump node version to v20 (latest LTS) --- .github/workflows/deploy-latest.yml | 3 ++- .../pr-tests_eslint-plugin-calcite-components.yml | 14 +++++--------- .../workflows/remove-next-changelog-entries.yml | 2 +- .github/workflows/update-browserslist-db.yml | 2 +- package.json | 4 ++-- 5 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy-latest.yml b/.github/workflows/deploy-latest.yml index e6e5501699a..f274f190511 100644 --- a/.github/workflows/deploy-latest.yml +++ b/.github/workflows/deploy-latest.yml @@ -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 }} diff --git a/.github/workflows/pr-tests_eslint-plugin-calcite-components.yml b/.github/workflows/pr-tests_eslint-plugin-calcite-components.yml index 124f4e63451..f96a2ed632f 100644 --- a/.github/workflows/pr-tests_eslint-plugin-calcite-components.yml +++ b/.github/workflows/pr-tests_eslint-plugin-calcite-components.yml @@ -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 diff --git a/.github/workflows/remove-next-changelog-entries.yml b/.github/workflows/remove-next-changelog-entries.yml index dc01bdc8814..923dbf6d668 100644 --- a/.github/workflows/remove-next-changelog-entries.yml +++ b/.github/workflows/remove-next-changelog-entries.yml @@ -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 diff --git a/.github/workflows/update-browserslist-db.yml b/.github/workflows/update-browserslist-db.yml index 73db9df1150..b61a5853cdd 100644 --- a/.github/workflows/update-browserslist-db.yml +++ b/.github/workflows/update-browserslist-db.yml @@ -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: | diff --git a/package.json b/package.json index d36d4f9aedb..6985e9b1382 100644 --- a/package.json +++ b/package.json @@ -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" } }