ci: 移除 setup-node npm 缓存 — Gitea act runner cache-save post 步骤 tar 打包在矩阵并行下失败会把 job 标红(0.7.2 CI 20.x Complete job 报错根因),npm ci 每次 1~2 分钟可接受
CI / test (18.x) (push) Failing after 32m2s
CI / test (20.x) (push) Successful in 16m7s
CI / test (22.x) (push) Successful in 14m23s
CI / test (24.x) (push) Successful in 27m44s
CI / e2e (push) Successful in 1m10s

This commit is contained in:
thzxx
2026-08-13 17:22:33 +08:00
parent 05e6823bf1
commit f8f8d1b2ff
+4 -2
View File
@@ -21,7 +21,9 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# v0.7.2-fix: 不用 cache —— Gitea act runner 对 setup-node 的 npm 缓存
# post 步骤(cache-save tar 打包)支持不完善,矩阵 job 并行时打包失败
# 会把整个 job 标红(即便 Run tests 已通过)。npm ci 每次 1~2 分钟可接受。
- name: Install dependencies
run: npm ci
@@ -61,7 +63,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
# v0.7.2-fix: 同上,e2e job 也不用 npm 缓存(cache-save post 失败风险)
- name: Install dependencies
run: npm ci
- name: Build