Skip to content

Commit 4bdaf25

Browse files
chore(CI): Update CI to yarn 4
1 parent 0d67445 commit 4bdaf25

File tree

5 files changed

+39
-9
lines changed

5 files changed

+39
-9
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
- uses: actions/setup-node@v4
8080
with:
8181
node-version: '20'
82+
83+
- name: Enable Corepack
84+
shell: bash
85+
run: corepack enable
86+
8287
- uses: actions/cache@v4
8388
id: yarn-cache
8489
name: Cache npm deps
@@ -88,7 +93,8 @@ jobs:
8893
**/node_modules
8994
~/.cache/Cypress
9095
key: ${{ runner.os }}-yarn-15-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
91-
- run: yarn install --frozen-lockfile
96+
97+
- run: yarn install --immutable
9298
if: steps.yarn-cache.outputs.cache-hit != 'true'
9399
- uses: actions/cache@v4
94100
id: dist
@@ -132,6 +138,9 @@ jobs:
132138
- uses: actions/setup-node@v4
133139
with:
134140
node-version: '20'
141+
- name: Enable Corepack
142+
shell: bash
143+
run: corepack enable
135144
- uses: actions/cache@v4
136145
id: yarn-cache
137146
name: Cache npm deps
@@ -141,7 +150,7 @@ jobs:
141150
**/node_modules
142151
~/.cache/Cypress
143152
key: ${{ runner.os }}-yarn-15-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
144-
- run: yarn install --frozen-lockfile
153+
- run: yarn install --immutable
145154
if: steps.yarn-cache.outputs.cache-hit != 'true'
146155
- uses: actions/cache@v4
147156
id: dist

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- uses: actions/setup-node@v4
3434
with:
3535
node-version: '20'
36+
- name: Enable Corepack
37+
shell: bash
38+
run: corepack enable
3639
- uses: actions/cache@v4
3740
id: yarn-cache
3841
name: Cache npm deps
@@ -41,7 +44,7 @@ jobs:
4144
node_modules
4245
**/node_modules
4346
key: ${{ runner.os }}-yarn-15-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
44-
- run: yarn install --frozen-lockfile
47+
- run: yarn install --immutable
4548
if: steps.yarn-cache.outputs.cache-hit != 'true'
4649
- uses: actions/cache@v4
4750
id: dist

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version: '20'
23+
- name: Enable Corepack
24+
shell: bash
25+
run: corepack enable
2326
- uses: actions/cache@v4
2427
id: yarn-cache
2528
name: Cache npm deps
@@ -29,7 +32,7 @@ jobs:
2932
**/node_modules
3033
~/.cache/Cypress
3134
key: ${{ runner.os }}-yarn-15-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
32-
- run: yarn install --frozen-lockfile
35+
- run: yarn install --immutable
3336
if: steps.yarn-cache.outputs.cache-hit != 'true'
3437
- uses: actions/cache@v4
3538
id: dist

.recipes/default/workflows/build-lint-test.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '20'
20+
- name: Enable Corepack
21+
shell: bash
22+
run: corepack enable
2023
- uses: actions/cache@v4
2124
id: yarn-cache
2225
name: Cache npm deps
@@ -25,7 +28,7 @@ jobs:
2528
node_modules
2629
**/node_modules
2730
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
28-
- run: yarn install --frozen-lockfile
31+
- run: yarn install --immutable
2932
if: steps.yarn-cache.outputs.cache-hit != 'true'
3033
- uses: actions/cache@v4
3134
id: dist
@@ -53,6 +56,9 @@ jobs:
5356
- uses: actions/setup-node@v4
5457
with:
5558
node-version: '20'
59+
- name: Enable Corepack
60+
shell: bash
61+
run: corepack enable
5662
- uses: actions/cache@v4
5763
id: yarn-cache
5864
name: Cache npm deps
@@ -61,7 +67,7 @@ jobs:
6167
node_modules
6268
**/node_modules
6369
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
64-
- run: yarn install --frozen-lockfile
70+
- run: yarn install --immutable
6571
if: steps.yarn-cache.outputs.cache-hit != 'true'
6672
- uses: actions/cache@v4
6773
id: lint-cache
@@ -90,6 +96,9 @@ jobs:
9096
- uses: actions/setup-node@v4
9197
with:
9298
node-version: '20'
99+
- name: Enable Corepack
100+
shell: bash
101+
run: corepack enable
93102
- uses: actions/cache@v4
94103
id: yarn-cache
95104
name: Cache npm deps
@@ -99,7 +108,7 @@ jobs:
99108
**/node_modules
100109
~/.cache/Cypress
101110
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
102-
- run: yarn install --frozen-lockfile
111+
- run: yarn install --immutable
103112
if: steps.yarn-cache.outputs.cache-hit != 'true'
104113
- uses: actions/cache@v4
105114
id: dist
@@ -131,6 +140,9 @@ jobs:
131140
- uses: actions/setup-node@v4
132141
with:
133142
node-version: '20'
143+
- name: Enable Corepack
144+
shell: bash
145+
run: corepack enable
134146
- uses: actions/cache@v4
135147
id: yarn-cache
136148
name: Cache npm deps
@@ -140,7 +152,7 @@ jobs:
140152
**/node_modules
141153
~/.cache/Cypress
142154
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
143-
- run: yarn install --frozen-lockfile
155+
- run: yarn install --immutable
144156
if: steps.yarn-cache.outputs.cache-hit != 'true'
145157
- uses: actions/cache@v4
146158
id: dist

.recipes/default/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '20'
20+
- name: Enable Corepack
21+
shell: bash
22+
run: corepack enable
2023
- uses: actions/cache@v4
2124
id: yarn-cache
2225
name: Cache npm deps
@@ -26,7 +29,7 @@ jobs:
2629
**/node_modules
2730
~/.cache/Cypress
2831
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
29-
- run: yarn install --frozen-lockfile
32+
- run: yarn install --immutable
3033
if: steps.yarn-cache.outputs.cache-hit != 'true'
3134
- uses: actions/cache@v4
3235
id: dist

0 commit comments

Comments
 (0)