Skip to content

Commit dd42c17

Browse files
committed
ci(corepack): fix corepack key id mismatch
1 parent 7d37150 commit dd42c17

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
ref: ${{ inputs.ref || 'main' }}
2828

2929
- name: Install pnpm
30-
run: corepack enable
30+
run: |
31+
npm install -g corepack@latest
32+
corepack enable
3133
3234
- name: Setup Node.js ${{ matrix.node-version }}
3335
uses: actions/setup-node@v4

.github/workflows/lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
fetch-depth: 1
2121

2222
- name: Install pnpm
23-
run: corepack enable
23+
run: |
24+
npm install -g corepack@latest
25+
corepack enable
2426
2527
- name: Setup Node.js
2628
uses: actions/setup-node@v4

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
ref: ${{ github.event.inputs.branch }}
3838

3939
- name: Install pnpm
40-
run: corepack enable
40+
run: |
41+
npm install -g corepack@latest
42+
corepack enable
4143
4244
- name: Setup Node.js
4345
uses: actions/setup-node@v4

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
fetch-depth: 10
2727

2828
- name: Install pnpm
29-
run: corepack enable
29+
run: |
30+
npm install -g corepack@latest
31+
corepack enable
3032
3133
- uses: dorny/[email protected]
3234
id: changes
@@ -65,7 +67,9 @@ jobs:
6567
git config --system core.longpaths true
6668
6769
- name: Install pnpm
68-
run: corepack enable
70+
run: |
71+
npm install -g corepack@latest
72+
corepack enable
6973
7074
- name: Setup Node.js ${{ matrix.node-version }}
7175
uses: actions/setup-node@v4
@@ -108,7 +112,9 @@ jobs:
108112
fetch-depth: 10
109113

110114
- name: Install pnpm
111-
run: corepack enable
115+
run: |
116+
npm install -g corepack@latest
117+
corepack enable
112118
113119
- name: Setup Node.js ${{ matrix.node-version }}
114120
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)