修复:去掉 sudo,容器内已是 root 用户
This commit is contained in:
@@ -31,14 +31,14 @@ jobs:
|
||||
|
||||
- name: Setup JDK 21
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y openjdk-21-jdk
|
||||
apt-get update -qq
|
||||
apt-get install -y openjdk-21-jdk
|
||||
java -version
|
||||
|
||||
- name: Setup Node.js 22
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
node --version
|
||||
|
||||
# 动态生成中文版 capacitor.config.json(webDir 指向 zh/ 目录)
|
||||
@@ -101,14 +101,14 @@ jobs:
|
||||
|
||||
- name: Setup JDK 21
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y openjdk-21-jdk
|
||||
apt-get update -qq
|
||||
apt-get install -y openjdk-21-jdk
|
||||
java -version
|
||||
|
||||
- name: Setup Node.js 22
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
apt-get install -y nodejs
|
||||
node --version
|
||||
|
||||
# 动态生成英文版 capacitor.config.json(webDir 指向 en/ 目录)
|
||||
|
||||
Reference in New Issue
Block a user