ci: runner 容器无 node 导致动作全挂——job 固定 node:20-alpine 容器,去掉 setup-node

This commit is contained in:
cqh963852 committed 2026-10-08 13:43:27 +08:00
1 parent f98c6acea6
commit bf1fcd8887
1 file changed
+2 -4
+2 -4
View File
@@ -2,6 +2,7 @@ name: Build Tutorial
# 主仓库 gitea.idealjs.com/idealjs/stack 的 CI: # 主仓库 gitea.idealjs.com/idealjs/stack 的 CI:
# 打包新教程站(apps/tutorial,Vite MPA,含设计系统四册页) # 打包新教程站(apps/tutorial,Vite MPA,含设计系统四册页)
# 注:runner 默认容器(Alpine)无 node,JS 动作跑不起来——job 固定 node 容器
on: on:
push: push:
branches: [main] branches: [main]
@@ -12,13 +13,10 @@ jobs:
build: build:
name: Build @stack/tutorial name: Build @stack/tutorial
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:20-alpine
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable corepack (yarn 4 via packageManager) - name: Enable corepack (yarn 4 via packageManager)
run: corepack enable run: corepack enable