-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (38 loc) · 933 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
trigger:
- master
pool:
vmImage: windows-latest
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.rr)
steps:
- task: NodeTool@0
displayName: 'Use Node 12.19.0'
inputs:
versionSpec: 12.19.0
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- task: Npm@1
displayName: 'npm run build'
inputs:
command: custom
verbose: false
customCommand: 'run build'
- task: Npm@1
displayName: 'Create installer'
inputs:
command: custom
verbose: false
customCommand: 'run pack'
- task: CopyFiles@2
displayName: 'Copy installer to artifact staging directory'
inputs:
sourceFolder: 'dist'
contents: |
*.exe
targetFolder: '$(Build.ArtifactStagingDirectory)\dist'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Substation_Installer'
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)\dist'
artifactName: 'Substation_Installer'