Skip to content

Commit 23796fe

Browse files
committed
ci: Enable corepack
1 parent 9372956 commit 23796fe

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.github/workflows/automate_dependabot_changeset.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v4
3838
with:
3939
node-version: 20
40-
40+
cache: "yarn"
41+
corepack: true
42+
4143
- name: Fetch previous commit for check
4244
run: git fetch origin '${{ github.event.pull_request.base.sha }}'
4345

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
with:
3333
node-version: 20
3434
registry-url: https://registry.npmjs.org/ # Needed for auth
35+
cache: "yarn"
36+
corepack: true
3537

3638
- name: Fetch previous commit for check
3739
run: git fetch origin '${{ github.event.pull_request.base.sha }}'
@@ -80,6 +82,8 @@ jobs:
8082
with:
8183
node-version: ${{ matrix.node-version }}
8284
registry-url: https://registry.npmjs.org/ # Needed for auth
85+
cache: "yarn"
86+
corepack: true
8387

8488
- name: yarn install
8589
run: yarn install --immutable
@@ -144,6 +148,9 @@ jobs:
144148
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v4
145149
with:
146150
node-version: 20.x
151+
cache: "yarn"
152+
corepack: true
153+
147154
- name: Install root dependencies
148155
run: yarn install --immutable
149156
- name: Verify lockfile duplicates

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
with:
2727
node-version: 20
2828
registry-url: https://registry.npmjs.org/ # Needed for auth
29+
cache: "yarn"
30+
corepack: true
2931

3032
- name: Fetch previous commit for check
3133
run: git fetch origin '${{ github.event.before }}'

.github/workflows/release_workspace.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
with:
5151
node-version: 20
5252
registry-url: https://registry.npmjs.org/ # Needed for auth
53+
cache: "yarn"
54+
corepack: true
5355

5456
- name: Get yarn cache directory path
5557
id: yarn-cache-dir-path
@@ -115,7 +117,9 @@ jobs:
115117
with:
116118
node-version: 20
117119
registry-url: https://registry.npmjs.org/ # Needed for auth
118-
120+
cache: "yarn"
121+
corepack: true
122+
119123
- name: Get yarn cache directory path
120124
id: yarn-cache-dir-path
121125
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)