File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function createNpmrcFile {
99 [Parameter (Mandatory = $true )][string ]$registry
1010 )
1111 Write-Host " Creating .npmrc file with registry=$registry " - ForegroundColor Blue
12- New-Item - Path . - Name " .npmrc" - ItemType " file " - Value " registry=$registry " - Force
12+ New-Item - Path . - Name .npmrc - ItemType File - Value " registry=$registry `n " - Force
1313}
1414
1515try {
1919 if ($response.StatusCode -eq 200 ) {
2020 Write-Host " adsk npm registry is reachable" - ForegroundColor Green
2121 createNpmrcFile - registry $adskNpmRegistry
22+ Write-Output " //npm.autodesk.com/artifactory/api/npm/:_authToken=\`$ {NPM_TOKEN}" | Out-File - Append - FilePath .npmrc
2223 }
2324 else {
2425 Write-Host " adsk npm registry is not reachable" - ForegroundColor Red
You can’t perform that action at this time.
0 commit comments