Skip to content

Commit 68e2178

Browse files
committed
Update archive.yml
1 parent 1053eb9 commit 68e2178

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/archive.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,25 @@ jobs:
2525
with:
2626
version: 10
2727

28-
- name: Cache playwright executables
28+
- name: Get pnpm store path
29+
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
30+
31+
- name: Cache pnpm dependencies
2932
uses: actions/cache@v4
3033
with:
31-
path: /home/runner/.cache/
34+
path: ${{ env.PNPM_STORE_PATH }}
35+
key: pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
36+
37+
# https://github.com/microsoft/playwright/issues/7249#issuecomment-2664215505
38+
- name: Extract Playwright version
39+
run: echo "PLAYWRIGHT_VERSION=$(jq -r '.dependencies.playwright' package.json)" >> $GITHUB_ENV
40+
41+
- name: Cache Playwright
42+
id: playwright-cache
43+
uses: actions/cache@v3
44+
with:
45+
path: ~/.cache/ms-playwright
46+
key: playwright-${{ env.PLAYWRIGHT_VERSION }}
3247

3348
- name: Install dependencies
3449
run: |

0 commit comments

Comments
 (0)