diff --git a/.github/workflows/npmjs-release.yml b/.github/workflows/npmjs-release.yml index 59054057f1..49f740d471 100644 --- a/.github/workflows/npmjs-release.yml +++ b/.github/workflows/npmjs-release.yml @@ -236,9 +236,13 @@ jobs: run: | yarn install --frozen-lockfile + - name: Install retry + uses: BitGo/install-github-release-binary@v2 + with: + targets: EricCrosson/retry@v1 + - name: Run yarn audit - run: | - yarn run audit-high + run: retry --up-to 2x --every 3s -- yarn run audit-high --retry-on-network-failure - name: Run dependency check run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6de2eeeac..85b7f58459 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,8 +36,13 @@ jobs: - name: Install BitGoJS run: sfw yarn install --with-frozen-lockfile + - name: Install retry + uses: BitGo/install-github-release-binary@v2 + with: + targets: EricCrosson/retry@v1 + - name: Audit Dependencies - run: yarn run improved-yarn-audit --min-severity high + run: retry --up-to 2x --every 3s -- yarn run improved-yarn-audit --min-severity high --retry-on-network-failure - name: Set Environment Variable for Alpha if: github.ref != 'refs/heads/master' # only publish changes if on feature branches