From d4cb3f87061048e216e1070ae245abc368e2c2fe Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Mon, 28 Oct 2024 14:32:13 -0400 Subject: [PATCH] Upgrade workflows Node version from `20.x` to `22.10.0` (#8601) Node 22 enters LTS on October 29th, 2024, so we should upgrade CI to run on Node 22. --- .github/workflows/canary-deploy.yml | 2 +- .github/workflows/check-changeset.yml | 2 +- .github/workflows/check-docs.yml | 2 +- .github/workflows/check-pkg-paths.yml | 2 +- .github/workflows/deploy-config.yml | 2 +- .github/workflows/e2e-test.yml | 2 +- .github/workflows/format.yml | 2 +- .../workflows/health-metrics-pull-request.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/prerelease-manual-deploy.yml | 2 +- .github/workflows/release-log.yml | 2 +- .github/workflows/release-pr.yml | 2 +- .github/workflows/release-prod.yml | 2 +- .github/workflows/release-staging.yml | 2 +- .github/workflows/release-tweet.yml | 2 +- .github/workflows/test-all.yml | 10 +++++----- .github/workflows/test-changed-auth.yml | 6 +++--- .../workflows/test-changed-fcm-integration.yml | 2 +- .../test-changed-firestore-integration.yml | 2 +- .github/workflows/test-changed-firestore.yml | 16 ++++++++-------- .github/workflows/test-changed-misc.yml | 2 +- .github/workflows/test-changed.yml | 6 +++--- .github/workflows/test-firebase-integration.yml | 2 +- .github/workflows/update-api-reports.yml | 2 +- 24 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/canary-deploy.yml b/.github/workflows/canary-deploy.yml index 94dba2ecf0b..b2139d4df0c 100644 --- a/.github/workflows/canary-deploy.yml +++ b/.github/workflows/canary-deploy.yml @@ -34,7 +34,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Deploy canary diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml index dfed38487c3..fa93c2c6cc9 100644 --- a/.github/workflows/check-changeset.yml +++ b/.github/workflows/check-changeset.yml @@ -37,7 +37,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Run changeset script diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index ef4c38ce951..34ad997fbc4 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -30,7 +30,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Run doc generation diff --git a/.github/workflows/check-pkg-paths.yml b/.github/workflows/check-pkg-paths.yml index 16cb2b8fc3f..3d6fb1099e3 100644 --- a/.github/workflows/check-pkg-paths.yml +++ b/.github/workflows/check-pkg-paths.yml @@ -30,7 +30,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Yarn build diff --git a/.github/workflows/deploy-config.yml b/.github/workflows/deploy-config.yml index e3c536aaca0..f01d8dcc9b3 100644 --- a/.github/workflows/deploy-config.yml +++ b/.github/workflows/deploy-config.yml @@ -38,7 +38,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Deploy project config if needed diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 36cdcb277fc..f22f77e0fe5 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -39,7 +39,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@master with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 9f298b81495..8dc971a1a8c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -34,7 +34,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Run formatting script diff --git a/.github/workflows/health-metrics-pull-request.yml b/.github/workflows/health-metrics-pull-request.yml index 3063c1abdb7..8c7aba8fb50 100644 --- a/.github/workflows/health-metrics-pull-request.yml +++ b/.github/workflows/health-metrics-pull-request.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - uses: 'google-github-actions/auth@v0' with: credentials_json: '${{ secrets.GCP_SA_KEY }}' @@ -58,7 +58,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - uses: 'google-github-actions/auth@v0' with: credentials_json: '${{ secrets.GCP_SA_KEY }}' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 80851d9834a..82bb1410226 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,7 +26,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: yarn install run: yarn - name: yarn lint diff --git a/.github/workflows/prerelease-manual-deploy.yml b/.github/workflows/prerelease-manual-deploy.yml index 993e391cee6..7821734e85a 100644 --- a/.github/workflows/prerelease-manual-deploy.yml +++ b/.github/workflows/prerelease-manual-deploy.yml @@ -37,7 +37,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Deploy prerelease diff --git a/.github/workflows/release-log.yml b/.github/workflows/release-log.yml index 570a1f70842..eaee66ce962 100644 --- a/.github/workflows/release-log.yml +++ b/.github/workflows/release-log.yml @@ -31,7 +31,7 @@ jobs: - name: Setup Node.js 20.x uses: actions/setup-node@master with: - node-version: 20.x + node-version: 22.10.0 - name: Get PR number and send to tracker. run: node scripts/ci/log-changesets.js diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index b88b80b6d87..ddfff2ed8eb 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -35,7 +35,7 @@ jobs: - name: Setup Node.js 20.x uses: actions/setup-node@master with: - node-version: 20.x + node-version: 22.10.0 - name: Install Dependencies run: yarn diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.yml index 344b73fe1e4..1ac9d1f3ee7 100644 --- a/.github/workflows/release-prod.yml +++ b/.github/workflows/release-prod.yml @@ -35,7 +35,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Checkout release branch (with history) uses: actions/checkout@v4 with: diff --git a/.github/workflows/release-staging.yml b/.github/workflows/release-staging.yml index 84974ea45f6..94b66c6c7a5 100644 --- a/.github/workflows/release-staging.yml +++ b/.github/workflows/release-staging.yml @@ -49,7 +49,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Merge main into release uses: actions/github-script@v6 with: diff --git a/.github/workflows/release-tweet.yml b/.github/workflows/release-tweet.yml index dffcbaeb0f3..ac446bed7ff 100644 --- a/.github/workflows/release-tweet.yml +++ b/.github/workflows/release-tweet.yml @@ -37,7 +37,7 @@ jobs: - name: Setup Node.js 20.x uses: actions/setup-node@master with: - node-version: 20.x + node-version: 22.10.0 - name: Poll release notes page on devsite run: node scripts/ci/poll_release_notes.js env: diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index eda081d1df7..68983f50a38 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -43,7 +43,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -82,7 +82,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -133,7 +133,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -173,7 +173,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -217,7 +217,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - run: cp config/ci.config.json config/project.json - run: yarn - run: yarn build:${{ matrix.persistence }} diff --git a/.github/workflows/test-changed-auth.yml b/.github/workflows/test-changed-auth.yml index 52b08c12e21..f94d058fb04 100644 --- a/.github/workflows/test-changed-auth.yml +++ b/.github/workflows/test-changed-auth.yml @@ -59,7 +59,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -91,7 +91,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json @@ -115,7 +115,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json diff --git a/.github/workflows/test-changed-fcm-integration.yml b/.github/workflows/test-changed-fcm-integration.yml index 464e3208ccc..ee7b680f70d 100644 --- a/.github/workflows/test-changed-fcm-integration.yml +++ b/.github/workflows/test-changed-fcm-integration.yml @@ -41,7 +41,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json diff --git a/.github/workflows/test-changed-firestore-integration.yml b/.github/workflows/test-changed-firestore-integration.yml index 94240156c78..b288ea49ed0 100644 --- a/.github/workflows/test-changed-firestore-integration.yml +++ b/.github/workflows/test-changed-firestore-integration.yml @@ -71,7 +71,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update diff --git a/.github/workflows/test-changed-firestore.yml b/.github/workflows/test-changed-firestore.yml index 4a924d14e25..7a181702d35 100644 --- a/.github/workflows/test-changed-firestore.yml +++ b/.github/workflows/test-changed-firestore.yml @@ -40,7 +40,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update @@ -87,7 +87,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update @@ -115,7 +115,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update @@ -145,7 +145,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update @@ -183,7 +183,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Download build archive uses: actions/download-artifact@v3 with: @@ -222,7 +222,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: cp config/ci.config.json config/project.json - name: Run tests @@ -240,7 +240,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Download build archive uses: actions/download-artifact@v3 with: @@ -277,7 +277,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup run: | cp config/ci.config.json config/project.json diff --git a/.github/workflows/test-changed-misc.yml b/.github/workflows/test-changed-misc.yml index 8e59dbea835..3cabe64f2b3 100644 --- a/.github/workflows/test-changed-misc.yml +++ b/.github/workflows/test-changed-misc.yml @@ -34,7 +34,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update diff --git a/.github/workflows/test-changed.yml b/.github/workflows/test-changed.yml index 5119c83cb37..6499a825725 100644 --- a/.github/workflows/test-changed.yml +++ b/.github/workflows/test-changed.yml @@ -34,7 +34,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update @@ -63,7 +63,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Firefox stable run: | sudo apt-get update @@ -92,7 +92,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Test setup and yarn install run: | cp config/ci.config.json config/project.json diff --git a/.github/workflows/test-firebase-integration.yml b/.github/workflows/test-firebase-integration.yml index c545bc2e86e..9a99e6f82a3 100644 --- a/.github/workflows/test-firebase-integration.yml +++ b/.github/workflows/test-firebase-integration.yml @@ -34,7 +34,7 @@ jobs: - name: Set up Node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: install Chrome stable run: | sudo apt-get update diff --git a/.github/workflows/update-api-reports.yml b/.github/workflows/update-api-reports.yml index c808000b5dc..761d7020c7a 100644 --- a/.github/workflows/update-api-reports.yml +++ b/.github/workflows/update-api-reports.yml @@ -33,7 +33,7 @@ jobs: - name: Set up node (20) uses: actions/setup-node@v3 with: - node-version: 20.x + node-version: 22.10.0 - name: Yarn install run: yarn - name: Update API reports