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:
@@ -17,6 +17,10 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
# 完整历史:供 git log 生成上一个 tag 以来的变更日志
|
# 完整历史:供 git log 生成上一个 tag 以来的变更日志
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
@@ -29,11 +33,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
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)
|
- name: 构建前端并嵌入(web/dist → internal/webui/dist)
|
||||||
run: make web sync-assets
|
run: make web sync-assets
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user