From 6548e193dc2af55e9ccbbc3a2f4742572b392a89 Mon Sep 17 00:00:00 2001 From: yuming Date: Sat, 16 May 2026 20:07:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Runner=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=EF=BC=9A=E6=94=B9=E7=94=A8=20apt=20=E5=AE=89=E8=A3=85?= =?UTF-8?q?=20JDK=20=E5=92=8C=20Node.js=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E4=BB=8E=20GitHub=20=E4=B8=8B=E8=BD=BD=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) 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)