File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ steps:
1212 - powershell : |
1313 $feedUrl = [Uri]'${{ parameters.feedUrl }}'
1414 $feedSkipScheme = "//$($feedUrl.Host)$($feedUrl.PathAndQuery)"
15- Set-Content -Path $HOME/.npmrc -Value "@microsoft:registry=$($feedUrl.AbsoluteUri)`n$($feedSkipScheme):username=VssSessionToken`n$($feedSkipScheme):email=not-used@example.com`n$($feedSkipScheme):_password=`${NPM_TOKEN_BASE64}"
1615 $access_token = '${{ parameters.access_token }}'
1716 if (!$access_token) { $access_token = '$(System.AccessToken)' }
1817 if (!$access_token) { Write-Error "No access token found." }
1918 $env:NPM_TOKEN_BASE64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($access_token))
19+ Set-Content -Path $HOME/.npmrc -Value "@microsoft:registry=$($feedUrl.AbsoluteUri)`n$($feedSkipScheme):username=VssSessionToken`n$($feedSkipScheme):email=not-used@example.com`n$($feedSkipScheme):_password=${env:NPM_TOKEN_BASE64}"
2020 Get-ChildItem @microsoft-*.tgz |% {
2121 Write-Host "##[command]npm publish $_ --verbose"
2222 npm publish $_ --verbose
You can’t perform that action at this time.
0 commit comments