-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
52 lines (41 loc) · 989 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
45
46
47
48
49
50
51
52
variables:
- group: Publishing Secrets
- name: PIPELINE_ARTIFACT_NAME
value: 'spawnmp-build'
trigger:
- master
jobs:
- job: Build
pool:
vmImage: 'windows-2019'
strategy:
matrix:
node_10_x:
node_version: 10.x
node_12_x:
node_version: 12.x
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
- script: npm i
displayName: 'Install npm dependencies'
- script: npm run static
displayName: 'Static analysis'
- script: npm run build
displayName: 'Compile'
# ------ #
- job: Release
dependsOn: build
pool:
vmImage: 'windows-2019'
steps:
- script: npm i
displayName: 'Install npm dependencies'
- script: npm run build
displayName: 'Compile'
- script: npx semantic-release
displayName: 'Release'
env:
GH_TOKEN: $(GH_TOKEN)
NPM_TOKEN: $(NPM_TOKEN)