36 lines
783 B
YAML
36 lines
783 B
YAML
# Starter pipeline
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
# Add steps that build, run tests, deploy, and more:
|
|
# https://aka.ms/yaml
|
|
|
|
trigger:
|
|
- main
|
|
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
displayName: 'Use Node 12.x'
|
|
inputs:
|
|
versionSpec: 12.x
|
|
- task: Npm@1
|
|
displayName: 'npm ci'
|
|
inputs:
|
|
command: ci
|
|
- script: npm run package
|
|
displayName: package
|
|
- script: npx vsce package
|
|
|
|
- task: CopyFiles@2
|
|
displayName: 'Copy vsix to staging directory'
|
|
inputs:
|
|
Contents: '**/*.vsix'
|
|
TargetFolder: '$(build.artifactstagingdirectory)'
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Publish artifacts: vsix'
|
|
inputs:
|
|
PathtoPublish: '$(build.artifactstagingdirectory)'
|
|
ArtifactName: vsix
|