Skip to content

Commit

Permalink
Upgrade workflows Node version from 20.x to 22.10.0 (#8601)
Browse files Browse the repository at this point in the history
Node 22 enters LTS on October 29th, 2024, so we should upgrade CI to run
on Node 22.
  • Loading branch information
dlarocque authored Oct 28, 2024
1 parent b807119 commit d4cb3f8
Show file tree
Hide file tree
Showing 24 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/canary-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-pkg-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/health-metrics-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand All @@ -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 }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease-manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tweet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-changed-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-changed-fcm-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-changed-firestore-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test-changed-firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-changed-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-firebase-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-api-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4cb3f8

Please sign in to comment.