Skip to content

Commit a18a249

Browse files
committed
clean up github actions workflows
1 parent 117dbfc commit a18a249

3 files changed

Lines changed: 55 additions & 55 deletions

File tree

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

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ jobs:
1919
node-version: '20'
2020
- name: Enable Corepack
2121
shell: bash
22-
run: |
23-
corepack enable
24-
corepack prepare yarn@4.10.3 --activate
22+
run: corepack enable
2523
- uses: actions/cache@v4
2624
id: yarn-cache
27-
name: Cache yarn deps
25+
name: Load Yarn cache
2826
with:
2927
path: |
30-
node_modules
31-
**/node_modules
32-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
33-
- run: yarn install --immutable
34-
if: steps.yarn-cache.outputs.cache-hit != 'true'
28+
.yarn/cache
29+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-yarn-cache-
32+
- name: Install dependencies
33+
shell: bash
34+
run: yarn install --immutable --network-timeout 100000
3535
- uses: actions/cache@v4
3636
id: dist
3737
name: Cache dist
@@ -60,19 +60,19 @@ jobs:
6060
node-version: '20'
6161
- name: Enable Corepack
6262
shell: bash
63-
run: |
64-
corepack enable
65-
corepack prepare yarn@4.10.3 --activate
63+
run: corepack enable
6664
- uses: actions/cache@v4
6765
id: yarn-cache
68-
name: Cache yarn deps
66+
name: Load Yarn cache
6967
with:
7068
path: |
71-
node_modules
72-
**/node_modules
73-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
74-
- run: yarn install --immutable
75-
if: steps.yarn-cache.outputs.cache-hit != 'true'
69+
.yarn/cache
70+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
71+
restore-keys: |
72+
${{ runner.os }}-yarn-cache-
73+
- name: Install dependencies
74+
shell: bash
75+
run: yarn install --immutable --network-timeout 100000
7676
- uses: actions/cache@v4
7777
id: lint-cache
7878
name: Load lint cache
@@ -102,19 +102,19 @@ jobs:
102102
node-version: '20'
103103
- name: Enable Corepack
104104
shell: bash
105-
run: |
106-
corepack enable
107-
corepack prepare yarn@4.10.3 --activate
105+
run: corepack enable
108106
- uses: actions/cache@v4
109107
id: yarn-cache
110-
name: Cache yarn deps
108+
name: Load Yarn cache
111109
with:
112110
path: |
113-
node_modules
114-
**/node_modules
115-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
116-
- run: yarn install --immutable
117-
if: steps.yarn-cache.outputs.cache-hit != 'true'
111+
.yarn/cache
112+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
113+
restore-keys: |
114+
${{ runner.os }}-yarn-cache-
115+
- name: Install dependencies
116+
shell: bash
117+
run: yarn install --immutable --network-timeout 100000
118118
- uses: actions/cache@v4
119119
id: dist
120120
name: Cache dist
@@ -146,20 +146,20 @@ jobs:
146146
node-version: '20'
147147
- name: Enable Corepack
148148
shell: bash
149-
run: |
150-
corepack enable
151-
corepack prepare yarn@4.10.3 --activate
149+
run: corepack enable
152150
- uses: actions/cache@v4
153151
id: yarn-cache
154-
name: Cache yarn deps
152+
name: Load Yarn cache
155153
with:
156154
path: |
157-
node_modules
158-
**/node_modules
159-
~/.cache/puppeteer
160-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
161-
- run: yarn install --immutable
162-
if: steps.yarn-cache.outputs.cache-hit != 'true'
155+
.yarn/cache
156+
~/.cache/puppeteer
157+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
158+
restore-keys: |
159+
${{ runner.os }}-yarn-cache-
160+
- name: Install dependencies
161+
shell: bash
162+
run: yarn install --immutable --network-timeout 100000
163163
- uses: actions/cache@v4
164164
id: dist
165165
name: Cache dist

.github/workflows/pr-preview.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ jobs:
2626
node-version: '20'
2727
- name: Enable Corepack
2828
shell: bash
29-
run: |
30-
corepack enable
31-
corepack prepare yarn@4.10.3 --activate
29+
run: corepack enable
3230
- uses: actions/cache@v4
3331
id: yarn-cache
34-
name: Cache yarn deps
32+
name: Load Yarn cache
3533
with:
3634
path: |
37-
node_modules
38-
**/node_modules
39-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
40-
- run: yarn install --immutable
41-
if: steps.yarn-cache.outputs.cache-hit != 'true'
35+
.yarn/cache
36+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
37+
restore-keys: |
38+
${{ runner.os }}-yarn-cache-
39+
- name: Install dependencies
40+
shell: bash
41+
run: yarn install --immutable --network-timeout 100000
4242
- run: yarn build
4343
name: Build component groups
4444
- uses: actions/cache@v4

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ jobs:
1919
node-version: '20'
2020
- name: Enable Corepack
2121
shell: bash
22-
run: |
23-
corepack enable
24-
corepack prepare yarn@4.10.3 --activate
22+
run: corepack enable
2523
- uses: actions/cache@v4
2624
id: yarn-cache
27-
name: Cache yarn deps
25+
name: Load Yarn cache
2826
with:
2927
path: |
30-
node_modules
31-
**/node_modules
32-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
33-
- run: yarn install --immutable
34-
if: steps.yarn-cache.outputs.cache-hit != 'true'
28+
.yarn/cache
29+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('yarn.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-yarn-cache-
32+
- name: Install dependencies
33+
shell: bash
34+
run: yarn install --immutable --network-timeout 100000
3535
- uses: actions/cache@v4
3636
id: dist
3737
name: Cache dist

0 commit comments

Comments
 (0)