From 2a023280a54980c1e0f46c8246ab9946aebacd37 Mon Sep 17 00:00:00 2001 From: Trae AI Date: Wed, 11 Nov 2026 21:40:49 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9C=A8=20checkout=20=E5=89=8D=E5=AE=89?= =?UTF-8?q?=E8=A3=85=20nodejs=EF=BC=8C=E4=BF=AE=E5=A4=8D=20runner=20?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=20node=20=E5=AF=BC=E8=87=B4=E6=8B=89?= =?UTF-8?q?=E5=8F=96=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3351db1..baf7c31 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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