From 820c9e272c189a08ff099cae9aba33273e339988 Mon Sep 17 00:00:00 2001 From: windychen0 <49142109+windychen0@users.noreply.github.com> Date: Sat, 6 Jun 2026 20:16:52 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=9D=E8=AF=95=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=20actions/checkout=20=E7=9A=84=E6=97=A0=E6=95=88=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9af3512..a7eb37b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -10,16 +10,17 @@ jobs: build: runs-on: docker # 匹配你 runner 的标签 steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Setup npm for Verdaccio run: | npm config set registry http://verdaccio:4873/ npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }} + - name: Setup npm cache + run: | + npm config set cache /cache/npm + - name: Install dependencies - run: npm i --registry http://verdaccio:4873/ # 或 npm install + run: npm i --registry http://verdaccio:4873/ - name: Run build run: npm run build