Skip to content

Commit 07841ec

Browse files
committed
fix: workflow
1 parent 0e52a0c commit 07841ec

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ jobs:
3131
uses: pnpm/action-setup@v2
3232
with:
3333
version: 8
34+
- name: Get pnpm store directory
35+
shell: bash
36+
run: |
37+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38+
- name: Setup pnpm cache
39+
uses: actions/cache@v3
40+
with:
41+
path: ${{ env.STORE_PATH }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+
restore-keys: |
44+
${{ runner.os }}-pnpm-store-
3445
- name: Install dependencies
3546
run: pnpm install
3647
- name: Build with Astro

0 commit comments

Comments
 (0)