更新 Node.js 版本至 22

pull/2356/head
lyswhut 2025-03-20 13:49:37 +08:00
parent f786a29b70
commit 08887cd6ed
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
# - name: Get npm cache directory
# run: node -p -e '`NPM_CACHE_DIR=${require("child_process").execSync("npm config get cache").toString()}`' >> $GITHUB_ENV

View File

@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install Dependencies
run: npm ci

2
package-lock.json generated
View File

@ -103,7 +103,7 @@
"webpack-merge": "^6.0.1"
},
"engines": {
"node": ">= 18",
"node": ">= 22",
"npm": ">=8.5.2"
}
},

View File

@ -71,7 +71,7 @@
"Electron 22.3.0"
],
"engines": {
"node": ">= 18",
"node": ">= 22",
"npm": ">=8.5.2"
},
"macLanguagesInfoPlistStrings": {