@@ -213,92 +213,3 @@ stages:
213
213
vmImage : macOS-10.15
214
214
steps :
215
215
- template : azure-pipelines/xplattest-pipeline.yml
216
-
217
- - stage : GitHubRelease
218
- displayName : GitHub Release
219
- condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
220
- jobs :
221
- - deployment : create
222
- pool :
223
- vmImage : ubuntu-latest
224
- environment : Approval
225
- strategy :
226
- runOnce :
227
- deploy :
228
- steps :
229
- - download : none
230
- - task : GitHubRelease@1
231
- displayName : GitHub release (create)
232
- inputs :
233
- gitHubConnection : GitHub AArnott
234
- repositoryName : $(Build.Repository.Name)
235
- tagSource : userSpecifiedTag
236
- tag : v$(Build.BuildNumber)
237
- title : v$(Build.BuildNumber)
238
- isDraft : true
239
- changeLogCompareToRelease : lastNonDraftRelease
240
- changeLogType : issueBased
241
- changeLogLabels : |
242
- [
243
- { "label" : "bug", "displayName" : "Fixes", "state" : "closed" },
244
- { "label" : "enhancement", "displayName": "Enhancements", "state" : "closed" }
245
- ]
246
-
247
- - stage : nuget_org
248
- displayName : nuget.org
249
- dependsOn : GitHubRelease
250
- condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
251
- jobs :
252
- - deployment : push
253
- pool :
254
- vmImage : ubuntu-latest
255
- environment : No-Approval # Approval is already granted in the release stage.
256
- strategy :
257
- runOnce :
258
- deploy :
259
- steps :
260
- - download : current
261
- artifact : deployables
262
- displayName : Download deployables artifact
263
- - task : NuGetToolInstaller@1
264
- displayName : Use NuGet 5.x
265
- inputs :
266
- versionSpec : 5.x
267
- - task : NuGetCommand@2
268
- displayName : NuGet push
269
- inputs :
270
- command : push
271
- packagesToPush : $(Pipeline.Workspace)/deployables/*.nupkg
272
- nuGetFeedType : external
273
- publishFeedCredentials : nuget.org
274
-
275
- - stage : npmjs_org
276
- displayName : npmjs.org
277
- dependsOn : GitHubRelease
278
- condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
279
- jobs :
280
- - deployment : push
281
- pool :
282
- vmImage : ubuntu-latest
283
- environment : No-Approval # Approval is already granted in the release stage.
284
- strategy :
285
- runOnce :
286
- deploy :
287
- steps :
288
- - download : current
289
- artifact : deployables
290
- displayName : Download deployables artifact
291
- - powershell : |
292
- $tgz = (Get-ChildItem *.tgz)[0].Name
293
- Write-Output ("##vso[task.setvariable variable=TgzPath;]$tgz")
294
-
295
- npm install $tgz
296
- workingDirectory: $(Pipeline.Workspace)/deployables
297
- displayName: Prepare to publish TGZ
298
- - task : Npm@1
299
- displayName : npm publish
300
- inputs :
301
- command : publish
302
- workingDir : $(Pipeline.Workspace)/deployables/node_modules/nerdbank-gitversioning
303
- verbose : false
304
- publishEndpoint : npmjs.org
0 commit comments