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 }}-