Skip to content

Commit fd580e6

Browse files
Update call-reusable.yml
1 parent 9c2cb49 commit fd580e6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/call-reusable.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13+
- name: Restore PNPM cache early (before pnpm installed)
14+
uses: actions/cache@v4
15+
with:
16+
# Intentionally use an env var that is not yet set, causing empty path
17+
path: ${{ env.STORE_PATH }}
18+
key: pnpm-store-${{ runner.os }}-18.20.4-v1
19+
1320
- name: Setup Node.js
1421
uses: actions/setup-node@v4
1522
with:
@@ -22,12 +29,6 @@ jobs:
2229
id: pnpm-cache-path
2330
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
2431

25-
- name: Restore PNPM cache
26-
uses: actions/cache@v4
27-
with:
28-
path: ${{ env.STORE_PATH }}
29-
key: pnpm-store-${{ runner.os }}-18.20.4-v1
30-
3132
- name: Install dependencies
3233
run: pnpm install
3334

0 commit comments

Comments
 (0)