forked from a1dancole/OpenAI-Code-Review
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
43 lines (35 loc) · 1006 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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
displayName: 'Install Node.js'
- script: |
npm install
npm install -g tfx-cli
displayName: 'npm install'
- script: |
npm install
npm run build
displayName: 'Build'
workingDirectory: '$(Build.SourcesDirectory)/ai-code-review'
- 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