From 9f84e8b9f64862db02709955715476aa6475763e Mon Sep 17 00:00:00 2001 From: Par9uet <1607611087@qq.com> Date: Sat, 2 Nov 2024 19:53:00 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=AD=A3=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/latest.yml | 3 --- .github/workflows/release.yml | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index 42493b9..3997347 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -25,9 +25,6 @@ jobs: - name: Enable Corepack run: corepack enable - - - name: Install pnpm - run: corepack prepare pnpm@latest --activate - name: Cache Linux pnpm if: matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d6f81e..35b7463 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,10 +27,20 @@ jobs: - name: Enable Corepack run: corepack enable - - name: Cache pnpm + - name: Cache Linux pnpm + if: matrix.os == 'ubuntu-latest' + uses: actions/cache@v4 + with: + path: ~/.local/share/pnpm/store + key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + pnpm-${{ runner.os }}- + + - name: Cache Windows pnpm + if: matrix.os == 'windows-latest' uses: actions/cache@v4 with: - path: ~/.pnpm-store + path: D:\.pnpm-store key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | pnpm-${{ runner.os }}-