Ignore failures when new package isn't indexed yet. (#6674)

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2025-07-29 08:03:29 -07:00 committed by GitHub
parent a4a4e70f21
commit 05c6f48fd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}