Skip to content

Commit a87fdfc

Browse files
committed
chore: explicitly install Corepack in CI
Following Node.js decision not to include Corepack in future versions of Node.js, to prevent any surprises and benefit from potential fixes in Corepack, I suggest we install the latest version of Corepack explicitly on CI instead of just hoping it's there.
1 parent 7cf66b2 commit a87fdfc

3 files changed

Lines changed: 27 additions & 7 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21-
- run: corepack enable
21+
22+
- name: Install Corepack
23+
run: npm install -g corepack
24+
2225
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2326
with:
2427
node-version: lts/*

.github/workflows/ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
23-
- run: corepack enable
23+
24+
- name: Install Corepack
25+
run: npm install -g corepack
26+
2427
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2528
with:
2629
node-version: lts/*
@@ -37,7 +40,10 @@ jobs:
3740

3841
steps:
3942
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
40-
- run: corepack enable
43+
44+
- name: Install Corepack
45+
run: npm install -g corepack
46+
4147
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
4248
with:
4349
node-version: lts/*
@@ -65,7 +71,10 @@ jobs:
6571

6672
steps:
6773
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
68-
- run: corepack enable
74+
75+
- name: Install Corepack
76+
run: npm install -g corepack
77+
6978
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
7079
with:
7180
node-version: lts/*
@@ -82,7 +91,10 @@ jobs:
8291

8392
steps:
8493
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
85-
- run: corepack enable
94+
95+
- name: Install Corepack
96+
run: npm install -g corepack
97+
8698
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
8799
with:
88100
node-version: lts/*
@@ -104,7 +116,10 @@ jobs:
104116

105117
steps:
106118
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
107-
- run: corepack enable
119+
120+
- name: Install Corepack
121+
run: npm install -g corepack
122+
108123
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
109124
with:
110125
node-version: lts/*

.github/workflows/lunaria.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
# Makes the action clone the entire git history
2929
fetch-depth: 0
3030

31-
- run: corepack enable
31+
- name: Install Corepack
32+
run: npm install -g corepack
33+
3234
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3335
with:
3436
node-version: lts/*

0 commit comments

Comments
 (0)