diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ddb217..cf02f14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,15 +30,16 @@ jobs: - uses: actions/checkout@v6 - name: Setup JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' + run: | + sudo apt-get update -qq + sudo apt-get install -y openjdk-21-jdk + java -version - - name: Setup Node.js - uses: actions/setup-node@v6 - with: - node-version: 22 + - name: Setup Node.js 22 + run: | + curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - + sudo apt-get install -y nodejs + node --version # 动态生成中文版 capacitor.config.json(webDir 指向 zh/ 目录) - name: Create capacitor.config.json (zh) @@ -99,15 +100,16 @@ jobs: - uses: actions/checkout@v6 - name: Setup JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' + run: | + sudo apt-get update -qq + sudo apt-get install -y openjdk-21-jdk + java -version - - name: Setup Node.js - uses: actions/setup-node@v6 - with: - node-version: 22 + - name: Setup Node.js 22 + run: | + curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - + sudo apt-get install -y nodejs + node --version # 动态生成英文版 capacitor.config.json(webDir 指向 en/ 目录) - name: Create capacitor.config.json (en)