Skip to content

Commit 334f2c7

Browse files
committed
fix Node.js default runtime
* update the deafult Node.js version for the GitHub Actions workflow * update the default Node.js runtime version constraint in the package.json * update the engine check to actually use the official keyword * added .nvmrc with default Node.js version for easier setup
1 parent f2b35af commit 334f2c7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/actions/install-all-build-libs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runs:
3333
- name: Setup Node
3434
uses: actions/setup-node@v4.0.4
3535
with:
36-
node-version: '20.18.0'
36+
node-version: '22.11.0'
3737
# disable cache for windows
3838
# https://github.com/actions/setup-node/issues/975
3939
cache: ${{ runner.os != 'Windows' && 'yarn' || '' }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.11.0

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,13 @@
298298
"url-parse": "^1.5.10",
299299
"uuid": "^8.3.2"
300300
},
301+
"engines": {
302+
"node": ">=22.x",
303+
"npm": ">=6.x",
304+
"yarn": ">=1.21.3"
305+
},
301306
"devEngines": {
302-
"node": ">=16.x",
307+
"node": ">=22.x",
303308
"npm": ">=6.x",
304309
"yarn": ">=1.21.3"
305310
},

0 commit comments

Comments
 (0)