Skip to content

Commit 662e62e

Browse files
committed
fix: retry yarn install in workflows
1 parent ee5db64 commit 662e62e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/cd-javascript.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
echo $(npm whoami --registry https://registry.npmjs.org/)
4646
4747
- name: Install JS dependencies
48-
run: yarn install --nonInteractive --frozen-lockfile
48+
run: (yarn install --nonInteractive --frozen-lockfile || yarn install --nonInteractive --frozen-lockfile)
4949

5050
- name: Build JS packages
5151
run: yarn build

.github/workflows/ci-javascript.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
${{ runner.os }}-yarn-
3737
3838
- name: Install dependencies
39-
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
39+
run: (yarn install --nonInteractive --frozen-lockfile --prefer-offline || yarn install --nonInteractive --frozen-lockfile --prefer-offline)
4040

4141
- name: Lint
4242
run: yarn run lint:ci
@@ -72,7 +72,7 @@ jobs:
7272
${{ runner.os }}-yarn-
7373
7474
- name: Install dependencies
75-
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
75+
run: (yarn install --nonInteractive --frozen-lockfile --prefer-offline || yarn install --nonInteractive --frozen-lockfile --prefer-offline)
7676

7777
- name: Build
7878
run: yarn build
@@ -113,7 +113,7 @@ jobs:
113113
${{ runner.os }}-yarn-
114114
115115
- name: Install dependencies
116-
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
116+
run: (yarn install --nonInteractive --frozen-lockfile --prefer-offline || yarn install --nonInteractive --frozen-lockfile --prefer-offline)
117117

118118
- name: Build
119119
run: yarn build

.github/workflows/ci-wrap-test-harness.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
${{ runner.os }}-yarn-
7474
7575
- name: Install dependencies
76-
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
76+
run: (yarn install --nonInteractive --frozen-lockfile --prefer-offline || yarn install --nonInteractive --frozen-lockfile --prefer-offline)
7777
working-directory: ./toolchain
7878

7979
- name: Build toolchain

0 commit comments

Comments
 (0)