Skip to content

Commit 9c4d968

Browse files
committed
Add retry logic for yarn install to handle registry errors
1 parent 14b5a84 commit 9c4d968

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
${{ runner.os }}-yarn-
3535
3636
- name: Install dependencies
37-
run: yarn install --frozen-lockfile
37+
run: |
38+
yarn install --frozen-lockfile --network-timeout 300000 || \
39+
yarn install --network-timeout 300000 || \
40+
npm ci
3841
3942
- name: Build website
4043
run: yarn build

0 commit comments

Comments
 (0)