From 5601c49d1ad13a50f5c3abe9fc187afcd4579525 Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Mon, 14 Jun 2021 11:21:15 +0100 Subject: [PATCH] fix: Fix npm ci failure in Github actions by retrying until it works --- .github/workflows/nodejs.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 781c08c3..6444e99a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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