Skip to content

Commit 0c86424

Browse files
committed
fix(ci): correct pnpm setup order in GitHub Actions
- Move pnpm installation before Node.js setup to avoid cache issues - Add run_install: false to prevent automatic installation - This fixes the 'Unable to locate executable file: pnpm' error
1 parent e44a94b commit 0c86424

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9.12.0
20+
run_install: false
21+
1622
- name: Setup Node.js
1723
uses: actions/setup-node@v4
1824
with:
1925
node-version: '20'
2026
cache: 'pnpm'
2127

22-
- name: Install pnpm
23-
uses: pnpm/action-setup@v4
24-
with:
25-
version: 9.12.0
26-
2728
- name: Install dependencies
2829
run: pnpm install --frozen-lockfile
2930

0 commit comments

Comments
 (0)