-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.yml
50 lines (47 loc) · 1.28 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
trigger:
branches:
include:
- master
- Release-*
tags:
exclude:
- 'v*'
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
persistCredentials: true
- task: NodeTool@0
inputs:
versionSource: 'spec'
versionSpec: '18.x'
displayName: 'Install Node.js'
- script: |
git config --global user.email 'azdo-ci@geoanalytics.group'
git config --global user.name 'AzDO Pipeline'
git checkout $(Build.SourceBranchName)
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Setup Git'
- script: |
cd projects/portal-core-ui/
mkdir '.git'
npm version patch -m "[skip ci] Upgrade to version %s"
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Bump package version'
- script: |
npm install -g npm@9
npm install -g @angular/cli@15
npm install
ng build --configuration production portal-core-ui
displayName: 'npm install and build'
- script: |
git push origin $(Build.SourceBranchName)
git push origin --tags
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Git Push back to repo'
- task: Npm@1
condition: ne(variables['Build.Reason'], 'PullRequest')
inputs:
command: 'publish'
workingDir: 'dist/portal-core-ui'
publishEndpoint: 'npmjs-auscope-update'