Skip to content

Commit

Permalink
ci: add retry for flaky npm install on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu committed Jan 31, 2023
1 parent c1b0051 commit d2a40b7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ jobs:
cache: "npm"

- name: Install dependencies (linux only)
if: matrix.os == 'ubuntu-18.04'
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt update && sudo apt install libudev-dev libusb-1.0-0-dev -y

- name: Install npm packages
run: npm i
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
retry_on: error
command: npm i

- name: Install dmg-license (macos only)
if: startsWith(matrix.os, 'macos')
Expand Down

0 comments on commit d2a40b7

Please sign in to comment.