generated from Busch-Jaeger/node-free-at-home-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
62 lines (59 loc) · 1.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
trigger:
tags:
include:
- v*
branches:
include:
- '*'
pool:
vmImage: 'ubuntu-20.04'
container: node:lts
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: '$(Build.SourcesDirectory)'
customRegistry: 'useFeed'
customFeed: 'cdc66582-4317-419c-9804-b5c9a44d0fdd/49a182ba-d355-4d1a-9882-fa25de6123e0'
- task: Npm@1
displayName: 'npm run buildProd'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'run buildProd'
- task: Npm@1
displayName: 'npm publish'
inputs:
command: 'publish'
workingDir: '$(Build.SourcesDirectory)'
verbose: true
publishRegistry: 'useFeed'
publishFeed: 'cdc66582-4317-419c-9804-b5c9a44d0fdd/49a182ba-d355-4d1a-9882-fa25de6123e0'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
- task: Npm@1
displayName: 'npm run pack'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'run pack'
- task: CopyFiles@2
displayName: 'copy archive to artifact dir'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '*.tar'
TargetFolder: '$(Build.StagingDirectory)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/fhstore'
includeRootFolder: true
archiveType: 'tar'
tarCompression: 'none'
archiveFile: '$(Build.StagingDirectory)/$(Build.Repository.Name)-fhstore.tar'
replaceExistingArchive: true
verbose: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.StagingDirectory)'
ArtifactName: 'free at home archive'
publishLocation: 'Container'