Use url version spec for autorest.* packages (#5017)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
This commit is contained in:
parent
25dc8ca24d
commit
436c0905e2
@ -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"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user