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