File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments