From 06a86039475cf4683e149fe2f9b7c6bb356d2121 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 15 Sep 2023 14:56:14 -0700 Subject: [PATCH] Enable retries for "rush install" (#2425) - Partial fix for azure/typespec-azure#3555 --- .github/workflows/website-gh-pages.yml | 2 +- eng/pipelines/jobs/pull-request-consistency.yml | 2 +- eng/pipelines/pr-tryit.yaml | 2 +- eng/pipelines/templates/install.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/website-gh-pages.yml b/.github/workflows/website-gh-pages.yml index ca8d4b778c..5b523a85d5 100644 --- a/.github/workflows/website-gh-pages.yml +++ b/.github/workflows/website-gh-pages.yml @@ -32,7 +32,7 @@ jobs: node-version: 18.x - name: Install dependencies - run: node common/scripts/install-run-rush.js update + run: node common/scripts/install-run-rush.js install --max-install-attempts 3 - name: Build run: node common/scripts/install-run-rush.js build --to @typespec/website -v diff --git a/eng/pipelines/jobs/pull-request-consistency.yml b/eng/pipelines/jobs/pull-request-consistency.yml index 7976e6af39..bf6cae5d3e 100644 --- a/eng/pipelines/jobs/pull-request-consistency.yml +++ b/eng/pipelines/jobs/pull-request-consistency.yml @@ -7,7 +7,7 @@ steps: versionSpec: "16.x" displayName: Install Node.js - - script: node common/scripts/install-run-rush.js install + - script: node common/scripts/install-run-rush.js install --max-install-attempts 3 displayName: Install JavaScript Dependencies - script: node common/scripts/install-run-rush.js change -v diff --git a/eng/pipelines/pr-tryit.yaml b/eng/pipelines/pr-tryit.yaml index 151ec88304..76593f6003 100644 --- a/eng/pipelines/pr-tryit.yaml +++ b/eng/pipelines/pr-tryit.yaml @@ -20,7 +20,7 @@ jobs: versionSpec: 16.x displayName: Install Node.js - - script: node common/scripts/install-run-rush.js install + - script: node common/scripts/install-run-rush.js install --max-install-attempts 3 displayName: Install JavaScript Dependencies - template: ./templates/build.yml diff --git a/eng/pipelines/templates/install.yml b/eng/pipelines/templates/install.yml index 65b233c442..9dfd5bbc2c 100644 --- a/eng/pipelines/templates/install.yml +++ b/eng/pipelines/templates/install.yml @@ -23,7 +23,7 @@ steps: dotnet --version displayName: "Log tool versions used" - - script: node common/scripts/install-run-rush.js install + - script: node common/scripts/install-run-rush.js install --max-install-attempts 3 displayName: Install JavaScript Dependencies - script: dotnet restore