Skip to content

Commit 28f1481

Browse files
committed
Fix an evidently unused but faulty script
The
1 parent c9932d2 commit 28f1481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-pipelines/npm_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)