Skip to content

Commit b717039

Browse files
committed
Bump CI Node version to 22
pnpm/action-setup installs the latest pnpm, which now requires Node >= 22.13, so every job that enabled the pnpm cache died with ERR_UNKNOWN_BUILTIN_MODULE on Node 20. GitHub also reports Node 20 as deprecated on its runners.
1 parent 72b8beb commit b717039

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup Node
3939
uses: actions/setup-node@v4
4040
with:
41-
node-version: '20'
41+
node-version: '22'
4242

4343
- name: Setup pnpm
4444
uses: pnpm/action-setup@v4
@@ -48,7 +48,7 @@ jobs:
4848
- name: Enable pnpm cache
4949
uses: actions/setup-node@v4
5050
with:
51-
node-version: '20'
51+
node-version: '22'
5252
cache: 'pnpm'
5353
cache-dependency-path: 'docs/pnpm-lock.yaml'
5454

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: 20
27+
node-version: 22
2828

2929
- name: Setup pnpm
3030
uses: pnpm/action-setup@v4
@@ -34,7 +34,7 @@ jobs:
3434
- name: Enable pnpm cache
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: 20
37+
node-version: 22
3838
cache: pnpm
3939
cache-dependency-path: |
4040
pnpm-lock.yaml
@@ -107,7 +107,7 @@ jobs:
107107
- name: Setup Node.js (docs)
108108
uses: actions/setup-node@v4
109109
with:
110-
node-version: 20
110+
node-version: 22
111111

112112
- name: Setup pnpm
113113
uses: pnpm/action-setup@v4
@@ -117,7 +117,7 @@ jobs:
117117
- name: Enable pnpm cache (docs)
118118
uses: actions/setup-node@v4
119119
with:
120-
node-version: 20
120+
node-version: 22
121121
cache: pnpm
122122
cache-dependency-path: docs/pnpm-lock.yaml
123123

0 commit comments

Comments
 (0)