Skip to content

Commit a8713a8

Browse files
committed
ci: cache
1 parent be9cbad commit a8713a8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,29 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v3
25+
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 16
29+
2530
- uses: pnpm/[email protected]
2631
with:
2732
version: 7
28-
- uses: actions/setup-node@v3
33+
run_install: false
34+
35+
- name: Get pnpm store directory
36+
id: pnpm-cache
37+
shell: bash
38+
run: |
39+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
40+
41+
- uses: actions/cache@v3
42+
name: Setup pnpm cache
2943
with:
30-
node-version: '16'
31-
cache: 'pnpm'
44+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46+
restore-keys: |
47+
${{ runner.os }}-pnpm-store-
3248
3349
- name: Cache firebase tools
3450
id: cache-firebase-tools

0 commit comments

Comments
 (0)