We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe68913 commit 04c214aCopy full SHA for 04c214a
1 file changed
.github/workflows/pr.yml
@@ -17,10 +17,24 @@ jobs:
17
uses: actions/setup-node@v4
18
with:
19
node-version: '20.x'
20
- cache: 'pnpm'
21
22
- name: Install pnpm
23
- run: npm install -g pnpm
+ uses: pnpm/action-setup@v3
+ with:
24
+ version: 10
25
+
26
+ - name: Get pnpm store directory
27
+ shell: bash
28
+ run: |
29
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30
31
+ - uses: actions/cache@v4
32
+ name: Setup pnpm cache
33
34
+ path: ${{ env.STORE_PATH }}
35
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36
+ restore-keys: |
37
+ ${{ runner.os }}-pnpm-store-
38
39
- name: Install dependencies
40
run: pnpm install
0 commit comments