Skip to content

Commit f92ada8

Browse files
committed
fix: correct pnpm setup order in remaining workflows
- Fix spellcheck.yml, lint.yml, noCompile.yml, and typecheck.yml - Move pnpm/action-setup before actions/setup-node to fix 'Unable to locate executable file: pnpm' error - Ensures pnpm is available when Node.js setup tries to use it for caching
1 parent da6a86a commit f92ada8

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
path: ${{github.workspace}}
3535
key: ${{ inputs.dep-cache-key }}
3636

37+
- uses: pnpm/action-setup@v4
38+
with:
39+
version: 10.5.2
40+
run_install: false
41+
3742
- name: Use Node.js 20
3843
uses: actions/setup-node@v5
3944
with:
4045
node-version: 20
4146
cache: 'pnpm'
4247

43-
- uses: pnpm/action-setup@v4
44-
with:
45-
version: 10.5.2
46-
run_install: false
47-
4848
- name: Install Dependencies (if not restored from cache)
4949
if: steps.dep-cache.outputs.cache-hit != 'true'
5050
run: pnpm install --frozen-lockfile

.github/workflows/noCompile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ jobs:
3232
path: ${{github.workspace}}
3333
key: ${{ env.DEP_CACHE_KEY }}
3434

35+
- uses: pnpm/action-setup@v4
36+
with:
37+
version: 10.5.2
38+
run_install: false
39+
3540
- name: Use Node.js 22
3641
uses: actions/setup-node@v5
3742
with:
3843
node-version: 22
3944
cache: 'pnpm'
4045

41-
- uses: pnpm/action-setup@v4
42-
with:
43-
version: 10.5.2
44-
run_install: false
45-
4646
- name: Install Dependencies (if not restored from cache)
4747
if: steps.dep-cache.outputs.cache-hit != 'true'
4848
run: pnpm install --frozen-lockfile --ignore-scripts

.github/workflows/spellcheck.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v5
1616

17-
- uses: actions/setup-node@v5
18-
with:
19-
node-version: 18
20-
cache: 'pnpm'
21-
2217
- uses: pnpm/action-setup@v4
2318
with:
2419
version: 10.5.2
2520
run_install: false
2621

22+
- uses: actions/setup-node@v5
23+
with:
24+
node-version: 18
25+
cache: 'pnpm'
26+
2727
- run: pnpm run spellcheck

.github/workflows/typecheck.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ jobs:
3737
path: ${{github.workspace}}
3838
key: ${{ inputs.dep-cache-key }}
3939

40+
- uses: pnpm/action-setup@v4
41+
with:
42+
version: 10.5.2
43+
run_install: false
44+
4045
- name: Use Node.js 20
4146
uses: actions/setup-node@v5
4247
with:
4348
node-version: 20
4449
cache: 'pnpm'
4550

46-
- uses: pnpm/action-setup@v4
47-
with:
48-
version: 10.5.2
49-
run_install: false
50-
5151
- name: Install Dependencies (if not restored from cache)
5252
if: steps.dep-cache.outputs.cache-hit != 'true'
5353
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)