diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fecd828..013f217 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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