File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
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
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ extends:
4242 nuGetFeedType : external
4343 publishFeedCredentials : VisualStudioExtensibility (nuget.org)
4444 steps :
45- - checkout : none
4645 - powershell : |
4746 Write-Host "##vso[build.updatebuildnumber]$(resources.pipeline.CI.runName)"
4847 if ('$(resources.pipeline.CI.runName)'.Contains('-')) {
@@ -58,7 +57,9 @@ extends:
5857 - download : CI
5958 artifact : deployables-Windows
6059 displayName : 🔻 Download deployables-Windows artifact
61- patterns : ' NuGet/*'
60+ patterns : |
61+ NuGet/*
62+ npm/*
6263 - task : GitHubRelease@1
6364 displayName : 📢 GitHub release (create)
6465 inputs :
@@ -81,8 +82,9 @@ extends:
8182 { "label" : "bug", "displayName" : "Fixes", "state" : "closed" },
8283 { "label" : "enhancement", "displayName": "Enhancements", "state" : "closed" }
8384 ]
85+ continueOnError : true # https://developercommunity.visualstudio.com/t/GitHubRelease-task-update-broke-releases/10975854
8486
85- - template : npm_push.yml
87+ - template : /azure-pipelines/ npm_push.yml@self
8688 parameters :
8789 tgzDir : $(Pipeline.Workspace)/CI/deployables-Windows/npm
8890 feedName : npmjs.org
You can’t perform that action at this time.
0 commit comments