Skip to content

Commit 9971bb7

Browse files
committed
fix: install latest corepack before enabling it
Addresses the issue in nodejs/corepack#612
1 parent cdad054 commit 9971bb7

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: 20.14.0
19+
- run: npm install --global corepack
1920
- run: corepack enable
2021
- run: pnpm --version
2122
- uses: actions/setup-node@v4

.github/workflows/ecosystem-ci-from-pr.yml

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
- uses: actions/setup-node@v4
8484
with:
8585
node-version: 20.14.0
86+
- run: npm install --global corepack
8687
- run: corepack enable
8788
- run: pnpm --version
8889
- run: pnpm i --frozen-lockfile
@@ -132,6 +133,7 @@ jobs:
132133
- uses: actions/setup-node@v4
133134
with:
134135
node-version: 20.14.0
136+
- run: npm install --global corepack
135137
- run: corepack enable
136138
- run: pnpm --version
137139
- run: pnpm i --frozen-lockfile

.github/workflows/ecosystem-ci-selected.yml

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
node-version: 20.14.0
6363
id: setup-node
6464

65+
- run: npm install --global corepack
6566
- run: corepack enable
6667
- run: pnpm --version
6768
- run: pnpm i --frozen-lockfile

.github/workflows/ecosystem-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
node-version: 20.14.0
6666
id: setup-node
6767

68+
- run: npm install --global corepack
6869
- run: corepack enable
6970
- run: pnpm --version
7071
- run: pnpm i --frozen-lockfile

0 commit comments

Comments
 (0)