-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
56 lines (44 loc) · 1.21 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
trigger:
branches:
include:
- main
# no PR triggers
pr: none
pool:
vmImage: ubuntu-latest
jobs:
- job:
steps:
# - task: SonarCloudPrepare@1
# inputs:
# SonarCloud: 'sonarcloudconnection'
# organization: 'leonidsconsultants0154'
# scannerMode: 'CLI'
# configMode: 'file'
- task: Npm@1
inputs:
command: 'install'
displayName: 'npm install'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build'
displayName: 'npm build complete'
# - task: SonarCloudAnalyze@1
# - task: SonarCloudPublish@1
# inputs:
# pollingTimeoutSec: '300'
# - task: ArchiveFiles@2
# displayName: 'Archive files'
# inputs:
# rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
# includeRootFolder: false
# archiveType: zip
# archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
# replaceExistingArchive: true
# - upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
# artifact: drop
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: dist
displayName: 'Publish Artifact: drop'