Skip to content

Commit f185703

Browse files
authored
chore(ci): upgrade Node.js from 20 to 22 in workflows and .nvmrc (#2221)
1 parent e2cf07b commit f185703

10 files changed

Lines changed: 29 additions & 29 deletions

File tree

.github/workflows/ci-core.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fetch-depth: 0
2929
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3030
with:
31-
node-version: 20
31+
node-version: 22
3232
cache: 'npm'
3333
- name: Install dependencies
3434
run: npm ci
@@ -62,7 +62,7 @@ jobs:
6262
fetch-depth: 0
6363
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
6464
with:
65-
node-version: 20
65+
node-version: 22
6666
cache: 'npm'
6767
- name: Install dependencies
6868
run: npm ci
@@ -89,7 +89,7 @@ jobs:
8989
fetch-depth: 0
9090
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
9191
with:
92-
node-version: 20
92+
node-version: 22
9393
cache: 'npm'
9494
- name: Install dependencies
9595
run: npm ci
@@ -131,7 +131,7 @@ jobs:
131131
fetch-depth: 0
132132
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
133133
with:
134-
node-version: 20
134+
node-version: 22
135135
cache: 'npm'
136136
- name: Install dependencies
137137
run: npm ci
@@ -188,7 +188,7 @@ jobs:
188188
fetch-depth: 0
189189
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
190190
with:
191-
node-version: 20
191+
node-version: 22
192192
cache: 'npm'
193193
- name: Install dependencies
194194
run: npm ci
@@ -243,7 +243,7 @@ jobs:
243243
fetch-depth: 0
244244
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
245245
with:
246-
node-version: 20
246+
node-version: 22
247247
cache: 'npm'
248248
- name: Install dependencies
249249
run: npm ci
@@ -294,7 +294,7 @@ jobs:
294294
fetch-depth: 0
295295
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
296296
with:
297-
node-version: 20
297+
node-version: 22
298298
cache: 'npm'
299299
- name: Install dependencies
300300
run: npm ci
@@ -373,7 +373,7 @@ jobs:
373373
fetch-depth: 0
374374
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
375375
with:
376-
node-version: 20
376+
node-version: 22
377377
cache: 'npm'
378378
- name: Install dependencies
379379
run: npm ci

.github/workflows/ci-supabase-js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_call:
66

77
env:
8-
NODE_VERSION: '20'
8+
NODE_VERSION: '22'
99

1010
jobs:
1111
build-package:
@@ -55,7 +55,7 @@ jobs:
5555
needs: build-package
5656
strategy:
5757
matrix:
58-
node: [20]
58+
node: [22]
5959
os: [ubuntu-latest, macos-latest, windows-latest]
6060
fail-fast: false
6161
steps:

.github/workflows/deprecate-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
type: string
1414

1515
env:
16-
NODE_VERSION: '20'
16+
NODE_VERSION: '22'
1717

1818
jobs:
1919
deprecate:
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- name: Generate token
2626
id: app-token
27-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
27+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
2828
with:
2929
app-id: ${{ secrets.APP_ID }}
3030
private-key: ${{ secrets.PRIVATE_KEY }}

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515
with:
1616
fetch-depth: 0
1717

1818
- name: Setup Node.js
19-
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
19+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2020
with:
21-
node-version: '20'
21+
node-version: '22'
2222
cache: 'npm'
2323

2424
- name: Install dependencies
@@ -142,7 +142,7 @@ jobs:
142142
find ./gh-pages -name "*.json" -o -name "*.html" | head -20
143143
144144
- name: Deploy to GitHub Pages
145-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
145+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
146146
with:
147147
github_token: ${{ secrets.GITHUB_TOKEN }}
148148
publish_dir: ./gh-pages

.github/workflows/dogfood.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ jobs:
4444
steps:
4545
- name: Generate token for member check
4646
id: app-token-member-check
47-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
47+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
4848
with:
4949
app-id: ${{ secrets.APP_ID }}
5050
private-key: ${{ secrets.PRIVATE_KEY }}
5151

5252
- name: Generate token for dogfood
5353
id: app-token-dogfood
54-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
54+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
5555
with:
5656
app-id: ${{ secrets.DOGFOOD_APP_ID }}
5757
private-key: ${{ secrets.DOGFOOD_APP_PRIVATE_KEY }}

.github/workflows/fix-lockfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
if: github.actor == 'dependabot[bot]'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1717
with:
1818
ref: ${{ github.head_ref }}
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020

21-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
21+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2222
with:
23-
node-version: 20
23+
node-version: 22
2424

2525
- name: Upgrade to latest
2626
run: npm install -g npm@latest

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
type: string
1212

1313
env:
14-
NODE_VERSION: '20'
14+
NODE_VERSION: '22'
1515
# Ensure Puppeteer installs and looks for Chrome in the same location
1616
PUPPETEER_CACHE_DIR: /home/runner/.cache/puppeteer
1717

.github/workflows/preview-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Node.js
3737
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3838
with:
39-
node-version: '20'
39+
node-version: '22'
4040
cache: 'npm'
4141

4242
- name: Install dependencies

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
type: string
2222

2323
env:
24-
NODE_VERSION: '20'
24+
NODE_VERSION: '22'
2525

2626
jobs:
2727
release-stable: # stable releases can only be manually triggered
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- name: Generate token
3838
id: app-token
39-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
39+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
4040
with:
4141
app-id: ${{ secrets.APP_ID }}
4242
private-key: ${{ secrets.PRIVATE_KEY }}
@@ -174,7 +174,7 @@ jobs:
174174
steps:
175175
- name: Generate token
176176
id: app-token
177-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
177+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
178178
with:
179179
app-id: ${{ secrets.APP_ID }}
180180
private-key: ${{ secrets.PRIVATE_KEY }}
@@ -207,7 +207,7 @@ jobs:
207207
steps:
208208
- name: Generate token
209209
id: app-token
210-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
210+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
211211
with:
212212
app-id: ${{ secrets.APP_ID }}
213213
private-key: ${{ secrets.PRIVATE_KEY }}
@@ -360,7 +360,7 @@ jobs:
360360
steps:
361361
- name: Generate token
362362
id: app-token
363-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
363+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
364364
with:
365365
app-id: ${{ secrets.APP_ID }}
366366
private-key: ${{ secrets.PRIVATE_KEY }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

0 commit comments

Comments
 (0)