From f8f8d1b2ffc5dcf93f335d166f453f71611ac7e7 Mon Sep 17 00:00:00 2001 From: thzxx Date: Thu, 13 Aug 2026 17:22:33 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E7=A7=BB=E9=99=A4=20setup-node=20npm=20?= =?UTF-8?q?=E7=BC=93=E5=AD=98=20=E2=80=94=20Gitea=20act=20runner=20cache-s?= =?UTF-8?q?ave=20post=20=E6=AD=A5=E9=AA=A4=20tar=20=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=9C=A8=E7=9F=A9=E9=98=B5=E5=B9=B6=E8=A1=8C=E4=B8=8B=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E4=BC=9A=E6=8A=8A=20job=20=E6=A0=87=E7=BA=A2=EF=BC=88?= =?UTF-8?q?0.7.2=20CI=2020.x=20Complete=20job=20=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E6=A0=B9=E5=9B=A0=EF=BC=89=EF=BC=8Cnpm=20ci=20=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=201~2=20=E5=88=86=E9=92=9F=E5=8F=AF=E6=8E=A5=E5=8F=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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