Skip to content

Commit ba6453d

Browse files
committed
fix corepack keys
1 parent c482c20 commit ba6453d

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

.github/workflows/build_and_deploy.yml

+20-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
with:
3030
node-version: ${{ env.NODE_LTS_VERSION }}
3131
check-latest: true
32-
- run: corepack enable
32+
- name: Setup corepack
33+
run: |
34+
npm i -g corepack@0.31
35+
corepack enable
3336
3437
- uses: actions/checkout@v4
3538
with:
@@ -253,7 +256,10 @@ jobs:
253256
with:
254257
node-version: ${{ env.NODE_LTS_VERSION }}
255258
check-latest: true
256-
- run: corepack enable
259+
- name: Setup corepack
260+
run: |
261+
npm i -g corepack@0.31
262+
corepack enable
257263
258264
- name: Install Rust
259265
uses: ./.github/actions/setup-rust
@@ -362,7 +368,10 @@ jobs:
362368
with:
363369
node-version: ${{ env.NODE_LTS_VERSION }}
364370
check-latest: true
365-
- run: corepack enable
371+
- name: Setup corepack
372+
run: |
373+
npm i -g corepack@0.31
374+
corepack enable
366375
367376
- name: Install Rust
368377
uses: ./.github/actions/setup-rust
@@ -412,8 +421,10 @@ jobs:
412421
with:
413422
node-version: ${{ env.NODE_LTS_VERSION }}
414423
check-latest: true
415-
- run: corepack enable
416-
424+
- name: Setup corepack
425+
run: |
426+
npm i -g corepack@0.31
427+
corepack enable
417428
# https://github.com/actions/virtual-environments/issues/1187
418429
- name: tune linux network
419430
run: sudo ethtool -K eth0 tx off rx off
@@ -460,8 +471,10 @@ jobs:
460471
with:
461472
node-version: ${{ env.NODE_LTS_VERSION }}
462473
check-latest: true
463-
- run: corepack enable
464-
474+
- name: Setup corepack
475+
run: |
476+
npm i -g corepack@0.31
477+
corepack enable
465478
# https://github.com/actions/virtual-environments/issues/1187
466479
- name: tune linux network
467480
run: sudo ethtool -K eth0 tx off rx off

.github/workflows/trigger_release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ jobs:
7171
- name: tune linux network
7272
run: sudo ethtool -K eth0 tx off rx off
7373

74-
- run: corepack enable && pnpm --version
74+
- name: Setup corepack
75+
run: |
76+
npm i -g corepack@0.31
77+
corepack enable
78+
pnpm --version
7579
7680
- id: get-store-path
7781
run: echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)