From 75214fcbb834c2e2a59cc8ece6ee76307884344a Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Mon, 28 Jul 2025 09:56:39 -0700 Subject: [PATCH] Ignore failures when new package isn't indexed yet. --- eng/common/pipelines/templates/jobs/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/pipelines/templates/jobs/npm-publish.yml b/eng/common/pipelines/templates/jobs/npm-publish.yml index 9909ace96e9f..ce51a7b583e9 100644 --- a/eng/common/pipelines/templates/jobs/npm-publish.yml +++ b/eng/common/pipelines/templates/jobs/npm-publish.yml @@ -99,6 +99,7 @@ jobs: $packageTags = npm view $packageJson.name "dist-tags" -json -silent | ConvertFrom-Json if ($LASTEXITCODE -ne 0 -or !$packageTags) { Write-Warning "Failed to retrieve dist-tags for $packageJson.name. It is possible the package hasn't been indexed yet so ignoring." + $global:LASTEXITCODE = 0 continue }