fix(ci): 发版 job 显式使用 node 容器镜像
Release / release (push) Failing after 2m8s

runner 默认镜像无 node,checkout/setup-go/release 等 JS 类 action
第一步即失败(Cannot find: node in PATH)。改用 node:24-bookworm
镜像(自带 node 与 git),并省去 setup-node 步骤。
This commit is contained in:
2026-09-09 23:00:32 +08:00
parent ad4a87fc9f
commit 95cac4688d
+4 -5
View File
@@ -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