Skip to content

Commit

Permalink
fix: Fix npm ci failure in Github actions by retrying until it works
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Jun 14, 2021
1 parent b83059b commit 5601c49
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ jobs:
with:
node-version: 12.14.1
- name: npm ci
run: |
npm ci
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
retry_on: error
retry_wait_seconds: 0
command: npm ci
env:
npm_config_arch: ${{matrix.config.arch}}
- name: Lint
Expand Down

0 comments on commit 5601c49

Please sign in to comment.