2019-06-01 19:40:23 +01:00
|
|
|
name: "$(Build.SourceBranchName)-$(Build.SourceVersion)$(Rev:.r)"
|
2019-06-01 19:14:19 +01:00
|
|
|
pr:
|
|
|
|
- master
|
2019-06-01 19:21:45 +01:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
- "refs/tags/*"
|
2019-06-01 19:14:19 +01:00
|
|
|
|
|
|
|
pool:
|
2019-06-01 19:21:45 +01:00
|
|
|
vmImage: "windows-2019"
|
2019-06-01 19:14:19 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: "10.x"
|
|
|
|
displayName: "Install NodeJS"
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
npm install -g vsce
|
|
|
|
displayName: "Install VSCE"
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
npm install
|
|
|
|
displayName: "NPM Install"
|
|
|
|
|
|
|
|
- script: |
|
2019-06-01 19:40:23 +01:00
|
|
|
vsce package --out "$(Build.ArtifactStagingDirectory)/xml-$(Build.SourceBranchName)-$(Build.SourceVersion).vsix"
|
2019-06-01 19:14:19 +01:00
|
|
|
displayName: "VSCE Package"
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: $(Build.ArtifactStagingDirectory)
|
|
|
|
artifactName: drop
|