Skip to content

Commit e5bdb0b

Browse files
authored
chore(ci): retry yarn install to ignore temporary network errors (#10691)
1 parent a53ddf6 commit e5bdb0b

14 files changed

+19
-20
lines changed

.github/workflows/argos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
node-version: lts/*
3636

3737
- name: Install dependencies
38-
run: yarn install --frozen-lockfile
38+
run: yarn || yarn || yarn
3939

4040
- name: Install Playwright browsers
4141
run: npx playwright install --with-deps chromium

.github/workflows/build-blog-only.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
node-version: lts/*
3030
cache: yarn
3131
- name: Installation
32-
run: yarn
32+
run: yarn || yarn || yarn
3333
- name: Build blog-only
3434
run: yarn workspace website build:blogOnly

.github/workflows/build-hash-router.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: lts/*
3333
cache: yarn
3434
- name: Installation
35-
run: yarn
35+
run: yarn || yarn || yarn
3636

3737
- name: Build Hash Router
3838
run: yarn build:website:fast

.github/workflows/build-perf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
node-version: lts/*
8181
cache: yarn
8282
- name: Installation
83-
run: yarn
83+
run: yarn || yarn || yarn
8484

8585
# Ensure build with a cold cache does not increase too much
8686
- name: Build (cold cache)

.github/workflows/canary-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4343
- name: Installation
44-
run: yarn
44+
run: yarn || yarn || yarn
4545
- name: Publish Canary release
4646
run: |
4747
yarn canary

.github/workflows/continuous-releases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
cache: yarn
2828

2929
- name: Installation
30-
run: yarn
30+
run: yarn || yarn || yarn
3131

3232
- name: Build packages
3333
run: yarn build:packages

.github/workflows/lighthouse-report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
node-version: lts/*
3030

3131
- name: Install dependencies
32-
run: yarn install --frozen-lockfile
32+
run: yarn || yarn || yarn
3333

3434
- name: Build website fast
3535
run: yarn build:website:fast

.github/workflows/lint-autofix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
ref: ${{ github.head_ref }}
2626

2727
- name: Installation
28-
run: yarn
28+
run: yarn || yarn || yarn
2929

3030
- name: AutoFix Format
3131
run: yarn format

.github/workflows/lint.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
node-version: lts/*
2828
cache: yarn
2929
- name: Installation
30-
run: yarn
31-
# run: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
30+
run: yarn install --frozen-lockfile || yarn install --frozen-lockfile || yarn install --frozen-lockfile
3231
- name: Check immutable yarn.lock
3332
run: git diff --exit-code
3433

.github/workflows/showcase-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
node-version: lts/*
3030
cache: yarn
3131
- name: Installation
32-
run: yarn
32+
run: yarn || yarn || yarn
3333
- name: Test
3434
run: yarn test website/src/data/__tests__/user.test.ts

.github/workflows/tests-e2e.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
node-version: ${{ matrix.node }}
4949
cache: yarn
5050
- name: Installation
51-
run: yarn
51+
run: yarn || yarn || yarn
5252
- name: Generate test-website project against main branch
5353
run: yarn test:build:website -s
5454
- name: Install test-website project with Yarn v1
55-
run: yarn install
55+
run: yarn || yarn || yarn
5656
working-directory: ../test-website
5757
env:
5858
npm_config_registry: http://localhost:4873
@@ -89,7 +89,7 @@ jobs:
8989
node-version: lts/*
9090
cache: yarn
9191
- name: Installation
92-
run: yarn
92+
run: yarn || yarn || yarn
9393
- name: Generate test-website project with ${{ matrix.variant }} against main branch
9494
run: yarn test:build:website ${{ matrix.variant }}
9595
- name: Install test-website project with Yarn Berry and nodeLinker = ${{ matrix.nodeLinker }}
@@ -105,7 +105,7 @@ jobs:
105105
# https://yarnpkg.com/features/pnp#fallback-mode
106106
yarn config set pnpFallbackMode none
107107
108-
yarn install
108+
yarn || yarn || yarn
109109
working-directory: ../test-website
110110
env:
111111
YARN_ENABLE_IMMUTABLE_INSTALLS: false # Yarn berry should create the lockfile, despite CI env
@@ -158,7 +158,7 @@ jobs:
158158
node-version: lts/*
159159
cache: yarn
160160
- name: Installation
161-
run: yarn
161+
run: yarn || yarn || yarn
162162
- name: Generate test-website project against main branch
163163
run: yarn test:build:website -s
164164
- name: Install test-website project with npm
@@ -195,7 +195,7 @@ jobs:
195195
node-version: lts/*
196196
cache: yarn
197197
- name: Installation
198-
run: yarn
198+
run: yarn || yarn || yarn
199199
- name: Generate test-website project against main branch
200200
run: yarn test:build:website -s
201201
- name: Install test-website project with pnpm

.github/workflows/tests-swizzle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
node-version: lts/*
3434
cache: yarn
3535
- name: Installation
36-
run: yarn
36+
run: yarn || yarn || yarn
3737

3838
# Swizzle all the theme components
3939
- name: Swizzle (${{matrix.action}} - ${{matrix.variant}})

.github/workflows/tests-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
node-version: ${{ matrix.node }}
4040
- name: Installation
41-
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
41+
run: yarn || yarn || yarn
4242
- name: Docusaurus Jest Tests
4343
run: yarn test
4444
- name: Create a deep path

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
node-version: ${{ matrix.node }}
3838
cache: yarn
3939
- name: Installation
40-
run: yarn
40+
run: yarn || yarn || yarn
4141
- name: Test
4242
run: yarn test
4343
- name: Remove Theme Internal Re-export

0 commit comments

Comments
 (0)