Skip to content

Commit cbac780

Browse files
authored
fix Node.js default runtime (#4661)
* 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 953572f commit cbac780

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/[email protected]
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
@@ -300,8 +300,13 @@
300300
"url-parse": "^1.5.10",
301301
"uuid": "^8.3.2"
302302
},
303+
"engines": {
304+
"node": ">=22.x",
305+
"npm": ">=6.x",
306+
"yarn": ">=1.21.3"
307+
},
303308
"devEngines": {
304-
"node": ">=16.x",
309+
"node": ">=22.x",
305310
"npm": ">=6.x",
306311
"yarn": ">=1.21.3"
307312
},

0 commit comments

Comments
 (0)