Skip to content

Commit 4f68e62

Browse files
author
Ahmed Hamouda
committed
fix: enable corepack in all workflows that use yarn
1 parent 54c63b7 commit 4f68e62

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

.github/workflows/publish-hotfix.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ jobs:
8080
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
8181
with:
8282
node-version: 20
83-
cache: 'yarn'
8483
env:
8584
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
85+
- name: Enable Corepack
86+
run: corepack enable
8687
- name: Install packages
8788
uses: ./.github/actions/install-with-retries
8889
with:
@@ -105,8 +106,8 @@ jobs:
105106
pull-requests: write
106107
env:
107108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108-
BASE_BRANCH: "main"
109-
HEAD_BRANCH: "hotfix"
109+
BASE_BRANCH: 'main'
110+
HEAD_BRANCH: 'hotfix'
110111
steps:
111112
- name: Checkout repo
112113
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.3 https://github.com/actions/checkout/commit/cd7d8d697e10461458bc61a30d094dc601a8b017

.github/workflows/publish-latest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ jobs:
7575
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
7676
with:
7777
node-version: 20
78-
cache: 'yarn'
7978
env:
8079
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
80+
- name: Enable Corepack
81+
run: corepack enable
8182
- name: Install packages
8283
uses: ./.github/actions/install-with-retries
8384
with:

.github/workflows/reusable-e2e.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ jobs:
113113
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
114114
with:
115115
node-version: 20
116-
cache: 'yarn'
117116
env:
118117
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
118+
- name: Enable Corepack
119+
run: corepack enable
119120

120121
- name: Restore cypress runner Cache
121122
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
@@ -400,9 +401,10 @@ jobs:
400401
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
401402
with:
402403
node-version: 20
403-
cache: 'yarn'
404404
env:
405405
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
406+
- name: Enable Corepack
407+
run: corepack enable
406408

407409
- name: Restore CocoaPods cache
408410
id: restore-cocoapods-cache
@@ -532,9 +534,10 @@ jobs:
532534
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
533535
with:
534536
node-version: 20
535-
cache: 'yarn'
536537
env:
537538
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
539+
- name: Enable Corepack
540+
run: corepack enable
538541

539542
- name: Install packages
540543
uses: ./.github/actions/install-with-retries
@@ -659,9 +662,10 @@ jobs:
659662
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
660663
with:
661664
node-version: 20
662-
cache: 'yarn'
663665
env:
664666
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
667+
- name: Enable Corepack
668+
run: corepack enable
665669

666670
- name: Restore cypress runner Cache
667671
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57

.github/workflows/reusable-tagged-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
2828
with:
2929
node-version: 20
30-
cache: 'yarn'
3130
env:
3231
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
32+
- name: Enable Corepack
33+
run: corepack enable
3334
- name: Install packages
3435
uses: ./.github/actions/install-with-retries
3536
with:

.github/workflows/version-packages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
3232
with:
3333
node-version: 20
34-
cache: 'yarn'
3534
env:
3635
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
36+
- name: Enable Corepack
37+
run: corepack enable
3738
- name: Install packages
3839
if: ${{ steps.has-changesets.outputs.has-changesets == 'true' }}
3940
run: yarn --frozen-lockfile

0 commit comments

Comments
 (0)