From ead70bb54725dd4bd514f1b3533bcf352a83ad7b Mon Sep 17 00:00:00 2001 From: wonder Date: Wed, 27 May 2026 12:59:19 +0800 Subject: [PATCH] fix: use container job to resolve act runner node PATH issue act runner cannot find node in PATH during post-step cleanup. Running all steps inside a node:22-alpine container ensures node is always available. Removes actions/setup-node as it's no longer needed. Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e30bf82..2d41e5a 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -8,14 +8,13 @@ on: jobs: build-and-deploy: runs-on: aliyun + container: node:22-alpine steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Install tools + run: apk add --no-cache docker-cli - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 22 + - name: Checkout + uses: actions/checkout@v4 - name: Install pnpm run: npm install -g pnpm