Skip to content

Commit 732c154

Browse files
committed
added release job to azure [skip ci]
1 parent 5d67091 commit 732c154

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

build.yml

+33
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,38 @@ jobs:
121121
command: custom
122122
verbose: false
123123
customCommand: 'run test --silent'
124+
env:
125+
DISPLAY: :10
126+
- job: Release
127+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
128+
pool:
129+
name: Hosted Ubuntu 1604
130+
demands: npm
131+
steps:
132+
- task: NodeTool@0
133+
displayName: 'Use Node 8.x'
134+
inputs:
135+
versionSpec: 8.x
136+
- task: Npm@1
137+
displayName: 'Install dependencies'
138+
inputs:
139+
verbose: false
140+
- task: Npm@1
141+
displayName: 'Compile sources'
142+
inputs:
143+
command: custom
144+
verbose: false
145+
customCommand: 'run build'
146+
- script: |
147+
set -e
148+
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
149+
disown -ar
150+
displayName: 'Start xvfb'
151+
- task: Npm@1
152+
displayName: 'Run semantic-release'
153+
inputs:
154+
command: custom
155+
verbose: false
156+
customCommand: 'run semantic-release'
124157
env:
125158
DISPLAY: :10

0 commit comments

Comments
 (0)