8000 fix: correct order of PNPM and Node.js setup steps · SuperCodeTool/coder@42a291b · GitHub
[go: up one dir, main page]

Skip to content

Commit 42a291b

Browse files
EdwardAngertclaude
andcommitted
fix: correct order of PNPM and Node.js setup steps
Fix error 'Unable to locate executable file: pnpm' by: 1. Swapping the order of PNPM and Node.js setup steps 2. Installing PNPM before setting up Node.js with cache 3. Adding explicit version (8) for PNPM installation 4. Applying same fix to both unified and example workflows This ensures PNPM is available before Node.js tries to use it for caching. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5a4ed5a commit 42a291b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/docs-reusable-example.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,18 @@ jobs:
4545
- name: Checkout code
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4747

48+
- name: Install PNPM
49+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
50+
with:
51+
version: 8
52+
run_install: false
53+
4854
- name: Setup Node.js
4955
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
5056
with:
5157
node-version: '20'
5258
cache: 'pnpm'
5359

54-
- name: Install PNPM
55-
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
56-
with:
57-
run_install: false
58-
5960
- name: Install dependencies
6061
run: ./scripts/pnpm_install.sh
6162

.github/workflows/docs-unified.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,18 @@ jobs:
6060
- name: Checkout code
6161
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6262

63+
- name: Install PNPM
64+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
65+
with:
66+
version: 8
67+
run_install: false
68+
6369
- name: Setup Node.js
6470
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
6571
with:
6672
node-version: '20'
6773
cache: 'pnpm'
6874

69-
- name: Install PNPM
70-
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
71-
with:
72-
run_install: false
73-
7475
- name: Install dependencies
7576
run: ./scripts/pnpm_install.sh
7677

0 commit comments

Comments
 (0)
0