Skip to content

Commit 3847506

Browse files
committed
Fix pnpm setup in CI
1 parent f79edd6 commit 3847506

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,28 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: "10"
24+
run_install: false
25+
2026
- name: Setup Node.js
2127
uses: actions/setup-node@v4
2228
with:
2329
node-version: ${{ matrix.node }}
24-
cache: pnpm
2530

26-
- name: Setup pnpm
27-
uses: pnpm/action-setup@v4
31+
- name: Get pnpm store path
32+
id: pnpm-store
33+
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
34+
35+
- name: Cache pnpm store
36+
uses: actions/cache@v4
2837
with:
29-
version: "10"
38+
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
39+
key: ${{ runner.os }}-pnpm-${{ matrix.node }}-${{ hashFiles('pnpm-lock.yaml') }}
40+
restore-keys: |
41+
${{ runner.os }}-pnpm-${{ matrix.node }}-
3042
3143
- name: Install
3244
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)