修复:用 n 升级 Node.js 到 22,覆盖容器内已有的 Node 20
This commit is contained in:
@@ -44,8 +44,9 @@ jobs:
|
||||
|
||||
- name: Setup Node.js 22
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
npm install -g n
|
||||
n 22
|
||||
hash -r
|
||||
node --version
|
||||
|
||||
# 动态生成中文版 capacitor.config.json(webDir 指向 zh/ 目录)
|
||||
@@ -121,8 +122,9 @@ jobs:
|
||||
|
||||
- name: Setup Node.js 22
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
npm install -g n
|
||||
n 22
|
||||
hash -r
|
||||
node --version
|
||||
|
||||
# 动态生成英文版 capacitor.config.json(webDir 指向 en/ 目录)
|
||||
|
||||
Reference in New Issue
Block a user