-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (38 loc) · 1.06 KB
/
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
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.15'
- task: Npm@1
displayName: 'npm ci'
inputs:
command: custom
customCommand: ci
- task: Npm@1
displayName: 'npm lint'
inputs:
command: custom
customCommand: run lint
- task: Npm@1
displayName: 'npm run build-prod'
inputs:
command: custom
customCommand: run build-prod
- script: |
node -p "require('./package.json').version" > version.txt
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build'
includeRootFolder: false
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: |
build.zip
scripts/*
version.txt
TargetFolder: '$(Build.ArtifactStagingDirectory)'
# https://docs.microsoft.com/pl-pl/azure/devops/pipelines/languages/javascript?view=vsts&tabs=yaml
- task: PublishBuildArtifacts@1