Skip to content

Commit 0188a98

Browse files
authored
chore: Use Node 22 (#253)
[As of October 29](https://github.com/nodejs/Release/tree/87462aac66fe3ce1ee1e3f812af83ccef9873782), Node.js 22 is the active `lts` version, and we should start to configure our repositories to use it as the latest supported version. This also updates our minimum supported Node versions for 18 and 20.
1 parent 570f6c2 commit 0188a98

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [18.x, 20.x]
12+
node-version: [18.x, 20.x, 22.x]
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Install Corepack via Node
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
matrix:
35-
node-version: [20.x]
35+
node-version: [22.x]
3636
steps:
3737
- uses: actions/checkout@v4
3838
- name: Install Corepack via Node
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464
strategy:
6565
matrix:
66-
node-version: [20.x]
66+
node-version: [22.x]
6767
steps:
6868
- uses: actions/checkout@v4
6969
- name: Install Corepack via Node
@@ -100,7 +100,7 @@ jobs:
100100
runs-on: ubuntu-latest
101101
strategy:
102102
matrix:
103-
node-version: [18.x, 20.x]
103+
node-version: [18.x, 20.x, 22.x]
104104
steps:
105105
- uses: actions/checkout@v4
106106
- name: Install Corepack via Node
@@ -131,7 +131,7 @@ jobs:
131131
runs-on: ubuntu-latest
132132
strategy:
133133
matrix:
134-
node-version: [18.x, 20.x]
134+
node-version: [18.x, 20.x, 22.x]
135135
steps:
136136
- uses: actions/checkout@v4
137137
- name: Install Corepack via Node

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"packageManager": "[email protected]",
8282
"engines": {
83-
"node": "^18.18 || >=20"
83+
"node": "^18.20 || ^20.17 || >=22"
8484
},
8585
"publishConfig": {
8686
"access": "public",

yarn.config.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async function expectPullRequestTemplate(workspace, workspaceName) {
179179

180180
const pullRequestTemplate = await getWorkspaceFile(
181181
workspace,
182-
'.github/PULL_REQUEST_TEMPLATE.md',
182+
'.github/pull_request_template.md',
183183
);
184184

185185
if (!pullRequestTemplate) {
@@ -253,8 +253,8 @@ module.exports = defineConfig({
253253
workspace.set('repository.type', 'git');
254254
workspace.set('repository.url', `${workspaceRepository}.git`);
255255

256-
// The package must specify a minimum Node.js version of 18.18.
257-
workspace.set('engines.node', '^18.18 || >=20');
256+
// The package must specify the expected minimum Node versions
257+
workspace.set('engines.node', '^18.20 || ^20.17 || >=22');
258258

259259
// The package must provide the location of the CommonJS-compatible
260260
// entrypoint and its matching type declaration file.

0 commit comments

Comments
 (0)