ci: 在 checkout 前安装 nodejs,修复 runner 缺少 node 导致拉取失败
Docker Build / Build and Push Docker Image (push) Successful in 2m30s
Docker Build / Deploy to Server (push) Successful in 6s

This commit is contained in:
Trae AI
2026-11-11 21:40:49 +08:00
parent 0a99c2b006
commit 2a023280a5
+12
View File
@@ -31,6 +31,18 @@ jobs:
fi
docker --version
- name: Install Node.js and Git
run: |
if ! command -v node &> /dev/null; then
if command -v apk &> /dev/null; then
apk add --no-cache nodejs git
elif command -v apt-get &> /dev/null; then
apt-get update && apt-get install -y nodejs git
fi
fi
node --version
git --version
- name: Checkout repository
uses: actions/checkout@v4