Skip to content

Commit b4ccdf6

Browse files
committed
Add pnpm dependency caching to deploy workflow
1 parent c9f5287 commit b4ccdf6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ jobs:
2020
with:
2121
version: 8
2222

23+
- name: 📦 Get pnpm store path
24+
id: pnpm-cache-path
25+
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
26+
27+
- name: ♻️ Cache dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: ${{ steps.pnpm-cache-path.outputs.STORE_PATH }}
31+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
32+
restore-keys: |
33+
${{ runner.os }}-pnpm-
34+
2335
- name: 📥 Install Dependencies
2436
run: pnpm install
2537

0 commit comments

Comments
 (0)