From 334f2c791e8595a8182d539535ed787c1c9540db Mon Sep 17 00:00:00 2001 From: Valentin Kirilov Date: Wed, 2 Jul 2025 11:01:09 +0300 Subject: [PATCH] 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 --- .github/actions/install-all-build-libs/action.yml | 2 +- .nvmrc | 1 + package.json | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.github/actions/install-all-build-libs/action.yml b/.github/actions/install-all-build-libs/action.yml index 4c80b0e25c..50c6bc3895 100644 --- a/.github/actions/install-all-build-libs/action.yml +++ b/.github/actions/install-all-build-libs/action.yml @@ -33,7 +33,7 @@ runs: - name: Setup Node uses: actions/setup-node@v4.0.4 with: - node-version: '20.18.0' + node-version: '22.11.0' # disable cache for windows # https://github.com/actions/setup-node/issues/975 cache: ${{ runner.os != 'Windows' && 'yarn' || '' }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..fdb2eaaff0 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22.11.0 \ No newline at end of file diff --git a/package.json b/package.json index ce2886a365..ebd0e593ae 100644 --- a/package.json +++ b/package.json @@ -298,8 +298,13 @@ "url-parse": "^1.5.10", "uuid": "^8.3.2" }, + "engines": { + "node": ">=22.x", + "npm": ">=6.x", + "yarn": ">=1.21.3" + }, "devEngines": { - "node": ">=16.x", + "node": ">=22.x", "npm": ">=6.x", "yarn": ">=1.21.3" },