diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd1f08a..95a2e66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/ 目录)