From ca6a9d77f9d7d537c9ec0b504e6960fbf74a00f2 Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Tue, 27 Aug 2024 15:53:46 -0700 Subject: [PATCH] Use --prefer-online to install package after publish (#5022) --- eng/PublishRelease.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/PublishRelease.ps1 b/eng/PublishRelease.ps1 index c9d95697732..11b2df7010c 100644 --- a/eng/PublishRelease.ps1 +++ b/eng/PublishRelease.ps1 @@ -42,7 +42,7 @@ try { $maxAttempts = 4 while($true) { Write-Host "Installing @autorest/csharp@$autorestVersion and updating package.json" - npm install @autorest/csharp@$autorestVersion --save-exact + npm install @autorest/csharp@$autorestVersion --save-exact --prefer-online $attemptCount += 1 if($LASTEXITCODE -eq 0) {