Skip to content

Commit ddf2506

Browse files
committed
fix: correct pnpm setup order in all workflow files
- Fix pnpm/action-setup@v4 to run before actions/setup-node@v5 in all workflows - This ensures pnpm is available when Node.js setup tries to use it for caching - Fixes 'Unable to locate executable file: pnpm' errors in CI - Also convert remaining npm usage to pnpm in vm-pr.yml
1 parent c02f143 commit ddf2506

20 files changed

+179
-174
lines changed

.github/workflows/binarytree-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ jobs:
4242
path: ${{github.workspace}}
4343
key: ${{ inputs.dep-cache-key }}
4444

45+
- uses: pnpm/action-setup@v4
46+
with:
47+
version: 10.5.2
48+
run_install: false
49+
4550
- name: Use Node.js 20
4651
uses: actions/setup-node@v5
4752
with:
4853
node-version: 20
4954
cache: 'pnpm'
5055

51-
- uses: pnpm/action-setup@v4
52-
with:
53-
version: 10.5.2
54-
run_install: false
55-
5656
- name: Install Dependencies (if not restored from cache)
5757
if: steps.dep-cache.outputs.cache-hit != 'true'
5858
run: pnpm install --frozen-lockfile

.github/workflows/block-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ jobs:
4646
path: ${{github.workspace}}
4747
key: ${{ inputs.dep-cache-key }}
4848

49+
- uses: pnpm/action-setup@v4
50+
with:
51+
version: 10.5.2
52+
run_install: false
53+
4954
- name: Use Node.js 20
5055
uses: actions/setup-node@v5
5156
with:
5257
node-version: 20
5358
cache: 'pnpm'
5459

55-
- uses: pnpm/action-setup@v4
56-
with:
57-
version: 10.5.2
58-
run_install: false
59-
6060
- name: Install Dependencies (if called from workflow_dispatch)
6161
if: steps.dep-cache.outputs.cache-hit != 'true'
6262
run: pnpm install --frozen-lockfile

.github/workflows/blockchain-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ jobs:
4040
path: ${{github.workspace}}
4141
key: ${{ inputs.dep-cache-key }}
4242

43+
- uses: pnpm/action-setup@v4
44+
with:
45+
version: 10.5.2
46+
run_install: false
47+
4348
- name: Use Node.js 20
4449
uses: actions/setup-node@v5
4550
with:
4651
node-version: 20
4752
cache: 'pnpm'
4853

49-
- uses: pnpm/action-setup@v4
50-
with:
51-
version: 10.5.2
52-
run_install: false
53-
5454
- name: Install Dependencies (if called from workflow_dispatch)
5555
if: steps.dep-cache.outputs.cache-hit != 'true'
5656
run: pnpm install --frozen-lockfile

.github/workflows/browser.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ jobs:
4545
path: ${{github.workspace}}
4646
key: ${{ inputs.dep-cache-key }}
4747

48+
- uses: pnpm/action-setup@v4
49+
with:
50+
version: 10.5.2
51+
run_install: false
52+
4853
- name: Use Node.js 20
4954
uses: actions/setup-node@v5
5055
with:
5156
node-version: 20
5257
cache: 'pnpm'
5358

54-
- uses: pnpm/action-setup@v4
55-
with:
56-
version: 10.5.2
57-
run_install: false
58-
5959
- name: Install Dependencies (if called from workflow_dispatch)
6060
if: steps.dep-cache.outputs.cache-hit != 'true'
6161
run: pnpm install --frozen-lockfile

.github/workflows/client-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ jobs:
4343
path: ${{github.workspace}}
4444
key: ${{ inputs.dep-cache-key }}
4545

46+
- uses: pnpm/action-setup@v4
47+
with:
48+
version: 10.5.2
49+
run_install: false
50+
4651
- name: Use Node.js 20
4752
uses: actions/setup-node@v5
4853
with:
4954
node-version: 20
5055
cache: 'pnpm'
5156

52-
- uses: pnpm/action-setup@v4
53-
with:
54-
version: 10.5.2
55-
run_install: false
56-
5757
- name: Install Dependencies (if not restored from cache)
5858
if: steps.dep-cache.outputs.cache-hit != 'true'
5959
run: pnpm install --frozen-lockfile
@@ -88,17 +88,17 @@ jobs:
8888
path: ${{github.workspace}}
8989
key: ${{ inputs.dep-cache-key }}
9090

91+
- uses: pnpm/action-setup@v4
92+
with:
93+
version: 10.5.2
94+
run_install: false
95+
9196
- name: Use Node.js 20
9297
uses: actions/setup-node@v5
9398
with:
9499
node-version: 20
95100
cache: 'pnpm'
96101

97-
- uses: pnpm/action-setup@v4
98-
with:
99-
version: 10.5.2
100-
run_install: false
101-
102102
- name: Install Dependencies (if not restored from cache)
103103
if: steps.dep-cache.outputs.cache-hit != 'true'
104104
run: pnpm install --frozen-lockfile

.github/workflows/common-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ jobs:
4242
path: ${{github.workspace}}
4343
key: ${{ inputs.dep-cache-key }}
4444

45+
- uses: pnpm/action-setup@v4
46+
with:
47+
version: 10.5.2
48+
run_install: false
49+
4550
- name: Use Node.js 20
4651
uses: actions/setup-node@v5
4752
with:
4853
node-version: 20
4954
cache: 'pnpm'
5055

51-
- uses: pnpm/action-setup@v4
52-
with:
53-
version: 10.5.2
54-
run_install: false
55-
5656
- name: Install Dependencies (if not restored from cache)
5757
if: steps.dep-cache.outputs.cache-hit != 'true'
5858
run: pnpm install --frozen-lockfile

.github/workflows/devp2p-build.yml

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

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

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

.github/workflows/evm-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ jobs:
4646
path: ${{github.workspace}}
4747
key: ${{ inputs.dep-cache-key }}
4848

49+
- uses: pnpm/action-setup@v4
50+
with:
51+
version: 10.5.2
52+
run_install: false
53+
4954
- name: Use Node.js 20
5055
uses: actions/setup-node@v5
5156
with:
5257
node-version: 20
5358
cache: 'pnpm'
5459

55-
- uses: pnpm/action-setup@v4
56-
with:
57-
version: 10.5.2
58-
run_install: false
59-
6060
- name: Install Dependencies (if not restored from cache)
6161
if: steps.dep-cache.outputs.cache-hit != 'true'
6262
run: pnpm install --frozen-lockfile

.github/workflows/examples.yml

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

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

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

.github/workflows/mpt-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ jobs:
4242
path: ${{github.workspace}}
4343
key: ${{ inputs.dep-cache-key }}
4444

45+
- uses: pnpm/action-setup@v4
46+
with:
47+
version: 10.5.2
48+
run_install: false
49+
4550
- name: Use Node.js 20
4651
uses: actions/setup-node@v5
4752
with:
4853
node-version: 20
4954
cache: 'pnpm'
5055

51-
- uses: pnpm/action-setup@v4
52-
with:
53-
version: 10.5.2
54-
run_install: false
55-
5656
- name: Install Dependencies (if not restored from cache)
5757
if: steps.dep-cache.outputs.cache-hit != 'true'
5858
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)