Skip to content

Commit 1f0d1df

Browse files
committed
fix: add pnpm caching to deploy-dev workflow to match iflastandards pattern
1 parent 635dfba commit 1f0d1df

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ jobs:
3737
node-version: '22'
3838
cache: 'pnpm'
3939

40+
- name: Get pnpm store directory
41+
shell: bash
42+
run: |
43+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44+
45+
- name: Setup pnpm cache
46+
uses: actions/cache@v4
47+
with:
48+
path: ${{ env.STORE_PATH }}
49+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50+
restore-keys: |
51+
${{ runner.os }}-pnpm-store-
52+
4053
- name: Install dependencies
4154
run: pnpm install --frozen-lockfile
4255

@@ -75,6 +88,19 @@ jobs:
7588
node-version: '22'
7689
cache: 'pnpm'
7790

91+
- name: Get pnpm store directory
92+
shell: bash
93+
run: |
94+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
95+
96+
- name: Setup pnpm cache
97+
uses: actions/cache@v4
98+
with:
99+
path: ${{ env.STORE_PATH }}
100+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
101+
restore-keys: |
102+
${{ runner.os }}-pnpm-store-
103+
78104
- name: Install dependencies
79105
run: pnpm install --frozen-lockfile
80106

0 commit comments

Comments
 (0)