Skip to content

Commit 18437ad

Browse files
committed
Add retry logic to npm install in deploy workflow
1 parent b68d7ca commit 18437ad

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
@@ -37,7 +37,10 @@ jobs:
3737
node-version: 20
3838
cache: 'npm'
3939
- name: Install dependencies
40-
run: npm install
40+
run: |
41+
for i in 1 2 3; do
42+
npm install && break || sleep 10
43+
done
4144
- name: Build
4245
run: npm run build
4346
- name: Setup Pages

0 commit comments

Comments
 (0)