Skip to content

Commit 3a44800

Browse files
committed
fix(github): reorder CI steps to fix pnpm setup on cache miss
Move fallback checkout before pnpm/action-setup so package.json is available to read the packageManager field when cache misses.
1 parent 5e740bd commit 3a44800

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@ jobs:
3636
./*
3737
~/.pnpm-store
3838
key: ${{ github.sha }}
39+
- name: Fallback checkout (cache miss)
40+
if: steps.setup-cache.outputs.cache-hit != 'true'
41+
uses: actions/checkout@v6
3942
- name: Install Node.js
4043
uses: actions/setup-node@v6
4144
with:
4245
node-version: "22.12.0"
4346
- name: Setup pnpm
4447
uses: pnpm/action-setup@v4
45-
# Fallback if cache miss (shouldn’t happen as job needs: setup)
46-
- name: Fallback checkout (cache miss)
47-
if: steps.setup-cache.outputs.cache-hit != 'true'
48-
uses: actions/checkout@v6
4948
- name: Fallback install (cache miss)
5049
if: steps.setup-cache.outputs.cache-hit != 'true'
5150
run: pnpm install

0 commit comments

Comments
 (0)