-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
88 lines (68 loc) · 1.98 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Node.js with Angular
# Build a Node.js project that uses Angular.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
- UpdateToAngular13
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- script: |
npm install -g @angular/cli
displayName: 'Install Angular CLI'
- script: |
npm run install-with-legacy
displayName: 'Install NPM packages'
############################
# Shared Library Build
############################
- script: |
npm run sharedlib:build
displayName: 'Build Shared Library'
############################
# Public Inspection Report Builds
############################
- script: |
npm run report:build:staging
displayName: 'Build Public Inspection Report - Staging'
- script: |
npm run report:build:prod
displayName: 'Build Public Inspection Report - Prod'
############################
# Internal Inspection Report Builds
############################
- script: |
npm run report-internal:build:staging
displayName: 'Build Internal Inspection Report - Staging'
- script: |
npm run report-internal:build:prod
displayName: 'Build Internal Inspection Report - Prod'
############################
# MyCar Builds
############################
- script: |
npm run mycar:build:staging
displayName: 'Build MyCar Membership Portal - Staging'
- script: |
npm run mycar:build:prod
displayName: 'Build MyCar Membership Portal - Prod'
############################
# Save Artifacts
############################
- task: CopyFiles@2
displayName: 'Copy Files'
inputs:
SourceFolder: 'dist'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'murphy-automotive-apps'