Skip to content

Commit 224f364

Browse files
ci: Fix yarn remaining in v1.22.22 in GitHub Actions
See: actions/setup-node#480
1 parent 1dcb2ed commit 224f364

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
with:
2828
fetch-depth: 1
2929

30+
# Has to be run before actions/setup-node.
31+
# See: https://github.com/actions/setup-node/issues/480
32+
- name: Enable corepack for yarn
33+
run: corepack enable
34+
3035
- name: Install Nodejs
3136
uses: actions/setup-node@v4
3237
id: setup-node

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
with:
2525
fetch-depth: 1
2626

27+
# Has to be run before actions/setup-node.
28+
# See: https://github.com/actions/setup-node/issues/480
29+
- name: Enable corepack for yarn
30+
run: corepack enable
31+
2732
- name: Install Nodejs
2833
uses: actions/setup-node@v4
2934
id: setup-node

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ jobs:
4040
with:
4141
fetch-depth: 1
4242

43-
- uses: actions/setup-node@v4
43+
# Has to be run before actions/setup-node.
44+
# See: https://github.com/actions/setup-node/issues/480
45+
- name: Enable corepack for yarn
46+
run: corepack enable
47+
48+
- name: Install Nodejs
49+
uses: actions/setup-node@v4
4450
id: setup-node
4551
with:
4652
node-version: ${{ matrix.node }}

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
with:
3030
fetch-depth: 1
3131

32+
# Has to be run before actions/setup-node.
33+
# See: https://github.com/actions/setup-node/issues/480
34+
- name: Enable corepack for yarn
35+
run: corepack enable
36+
3237
- name: Install Nodejs
3338
uses: actions/setup-node@v4
3439
id: setup-node

0 commit comments

Comments
 (0)