Skip to content

Commit 144d122

Browse files
Add pnpm store caching to speed up builds
Co-Authored-By: Warp <agent@warp.dev>
1 parent 42491b1 commit 144d122

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/preview-deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ jobs:
3333
with:
3434
version: 9
3535

36+
- name: Get pnpm store directory
37+
shell: bash
38+
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39+
40+
- name: Cache pnpm store
41+
uses: actions/cache@v4
42+
with:
43+
path: ${{ env.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
47+
3648
- name: Install dependencies
3749
run: pnpm install --frozen-lockfile
3850

0 commit comments

Comments
 (0)