Use url version spec for autorest.* packages (#5017)

Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
This commit is contained in:
Azure SDK Bot 2023-10-11 13:46:07 -07:00 committed by GitHub
parent 25dc8ca24d
commit 436c0905e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,13 +53,6 @@ function NpmInstallForProject([string]$workingDirectory) {
Copy-Item -Path $emitterPackageLock -Destination "package-lock.json" -Force
}
$useAlphaNpmRegistry = (Get-Content $replacementPackageJson -Raw).Contains("-alpha.")
if($useAlphaNpmRegistry) {
Write-Host "Package.json contains '-alpha.' in the version, Creating .npmrc using public/azure-sdk-for-js-test-autorest feed."
"registry=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/ `n`nalways-auth=true" | Out-File '.npmrc'
}
if ($usingLockFile) {
Invoke-LoggedCommand "npm ci"
}