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