Skip to content

Commit 5890728

Browse files
authored
Bump minimum Node to v20 (#271)
v18 was EOL'd in March 2025. The supported versions of Node as defined in `package.json` and tested in the CI matrix is now 20.x, 22.x, and 24.x.
1 parent 824d16c commit 5890728

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [18.x, 20.x, 22.x]
12+
node-version: [20.x, 22.x, 24.x]
1313
steps:
1414
- name: Checkout and setup environment
1515
uses: MetaMask/action-checkout-and-setup@v1
1616
with:
1717
is-high-risk-environment: false
1818
node-version: ${{ matrix.node-version }}
19-
cache-node-modules: ${{ matrix.node-version == '22.x' }}
19+
cache-node-modules: ${{ matrix.node-version == '24.x' }}
2020

2121
build:
2222
name: Build
2323
needs: prepare
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
node-version: [22.x]
27+
node-version: [24.x]
2828
steps:
2929
- name: Checkout and setup environment
3030
uses: MetaMask/action-checkout-and-setup@v1
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ubuntu-latest
4747
strategy:
4848
matrix:
49-
node-version: [22.x]
49+
node-version: [24.x]
5050
steps:
5151
- name: Checkout and setup environment
5252
uses: MetaMask/action-checkout-and-setup@v1
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: ubuntu-latest
7575
strategy:
7676
matrix:
77-
node-version: [18.x, 20.x, 22.x]
77+
node-version: [20.x, 22.x, 24.x]
7878
steps:
7979
- name: Checkout and setup environment
8080
uses: MetaMask/action-checkout-and-setup@v1
@@ -96,7 +96,7 @@ jobs:
9696
runs-on: ubuntu-latest
9797
strategy:
9898
matrix:
99-
node-version: [18.x, 20.x, 22.x]
99+
node-version: [20.x, 22.x, 24.x]
100100
steps:
101101
- name: Checkout and setup environment
102102
uses: MetaMask/action-checkout-and-setup@v1

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.20 || ^20.17 || >=22"
83+
"node": "^20 || ^22 || >=24"
8484
},
8585
"publishConfig": {
8686
"access": "public",

yarn.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ module.exports = defineConfig({
254254
workspace.set('repository.url', `${workspaceRepository}.git`);
255255

256256
// The package must specify the expected minimum Node versions
257-
workspace.set('engines.node', '^18.20 || ^20.17 || >=22');
257+
workspace.set('engines.node', '^20 || ^22 || >=24');
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)