forked from tlaukkanen/azure-devops-pr-comment-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
44 lines (36 loc) · 1016 Bytes
/
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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- script: |
npm install
npm install -g tfx-cli
displayName: 'npm install'
- script: |
npm install
npm run build
npm run test
displayName: 'Build & test task'
workingDirectory: 'buildandreleasetask/'
- script: |
npx tfx-cli extension create
displayName: Create VSIX package
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: 'Copy .VSIX package'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: vsix
displayName: 'Publish VSIX package'
- script: |
npx tfx-cli extension publish --token $(MarketplaceAccessToken) --publisher TommiLaukkanen --manifest vss-extension.json
displayName: Publish to Marketplace