-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
54 lines (46 loc) · 1.29 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
version: $[ counter('revision',0) ]
steps:
- task: TfxInstaller@3
inputs:
version: 'v0.8.x'
displayName: 'Use Node CLI for Azure DevOps (tfx-cli): v0.8.x'
- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: '$(build.sourcesdirectory)'
- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: '$(build.sourcesdirectory)/GetRevision'
- task: CmdLine@2
inputs:
script: 'tsc'
- task: PackageAzureDevOpsExtension@3
displayName: 'Package Extension - Private'
inputs:
rootFolder: '$(Build.SourcesDirectory)'
extensionVersion: '1.0.$(Version)'
extensionVisibility: private
extensionPricing: free
extensionId: 'GetRevisionDev'
outputPath: '$(Build.ArtifactStagingDirectory)/vsix'
- task: PackageAzureDevOpsExtension@3
displayName: 'Package Extension - Public'
inputs:
rootFolder: '$(Build.SourcesDirectory)'
extensionVersion: '1.0.$(Version)'
extensionVisibility: public
extensionPricing: free
updateTasksVersion: false
outputPath: '$(Build.ArtifactStagingDirectory)/vsix'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\vsix'