From 168aa57810a17a3d1fb15b180262f75f7b6f44aa Mon Sep 17 00:00:00 2001 From: shaw Date: Mon, 5 Jan 2026 21:29:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BD=BF=E7=94=A8=20pnpm=20=E8=80=8C?= =?UTF-8?q?=E9=9D=9E=20npm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dc2278e..5af42d63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,19 +57,24 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' - cache-dependency-path: frontend/package-lock.json + cache: 'pnpm' + cache-dependency-path: frontend/pnpm-lock.yaml - name: Install dependencies - run: npm ci + run: pnpm install --frozen-lockfile working-directory: frontend - name: Build frontend - run: npm run build + run: pnpm run build working-directory: frontend - name: Upload frontend artifact