-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
43 lines (35 loc) · 923 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
steps:
- script: bash ./scripts/init.sh
displayName: "Setup Build Environment"
env:
MYGET_API_KEY: $(MYGET-WRITE-API-KEY)
- script: bash ./scripts/build.sh
displayName: "Build Artifacts"
- script: bash ./scripts/publish.sh
displayName: "Publish NPM Package"
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
env:
CURRENT_BRANCH: $(Build.SourceBranch)
- task: PublishTestResults@2
inputs:
testRunner: JUnit
testResultsFiles: '$(System.DefaultWorkingDirectory)/artifacts/**/reports/junit.xml'
- script: bash ./scripts/clean.sh
displayName: 'Clean Up Build Environments'
variables:
- group: "Azure Key Vault"
trigger:
branches:
include:
- main
- master
- refs/tags/v*
tags:
include:
- v* #vX.Y.Z
pr:
branches:
include:
- main
- master
pool: "Linux-Docker"