File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ function NpmInstallForProject([string]$workingDirectory) {
4545
4646 Write-Host (" Copying package.json from $replacementPackageJson " )
4747 Copy-Item - Path $replacementPackageJson - Destination " package.json" - Force
48+
49+ $useAlphaNpmRegistry = (Get-Content $replacementPackageJson - Raw).Contains(" -alpha." )
50+
51+ if ($useAlphaNpmRegistry ) {
52+ Write-Host " Package.json contains '-alpha.' in the version, Creating .npmrc using public/azure-sdk-for-js-test-autorest feed."
53+ " registry=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/ `n`n always-auth=true" | Out-File ' .npmrc'
54+ }
55+
4856 npm install -- no- lock-file
4957 if ($LASTEXITCODE ) { exit $LASTEXITCODE }
5058 }
You can’t perform that action at this time.
0 commit comments