From 95cac4688dcd5ff73d78bb191413ce022f9b0eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=81=E5=86=9C=E9=98=BF=E6=A5=A0?= Date: Wed, 9 Sep 2026 23:00:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E5=8F=91=E7=89=88=20job=20=E6=98=BE?= =?UTF-8?q?=E5=BC=8F=E4=BD=BF=E7=94=A8=20node=20=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runner 默认镜像无 node,checkout/setup-go/release 等 JS 类 action 第一步即失败(Cannot find: node in PATH)。改用 node:24-bookworm 镜像(自带 node 与 git),并省去 setup-node 步骤。 --- .gitea/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d2649d5..36fabb0 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -17,6 +17,10 @@ permissions: jobs: release: runs-on: ubuntu-latest + # runner 默认镜像无 node,而 checkout/setup-go/release 等 JS 类 action 依赖 node: + # 显式指定含 node 与 git 的镜像;node 已就位则无需 setup-node(npm 直接可用) + container: + image: node:24-bookworm steps: # 完整历史:供 git log 生成上一个 tag 以来的变更日志 - name: 检出代码 @@ -29,11 +33,6 @@ jobs: with: go-version-file: go.mod - - name: 安装 Node - uses: https://gitea.com/actions/setup-node@v4 - with: - node-version: 24 - - name: 构建前端并嵌入(web/dist → internal/webui/dist) run: make web sync-assets