forked from AssistantNMS/WebApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
52 lines (43 loc) · 1.12 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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- pwsh: ./src/setBuildName.ps1 $(Build.BuildId)
displayName: 'Set Build Name'
- task: Npm@1
inputs:
command: 'ci'
workingDir: 'webpack'
displayName: 'npm install for webpack folder'
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'webpack'
customCommand: 'run build'
displayName: 'Build Seo Files'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'install --force'
displayName: 'npm install'
- task: Npm@1
inputs:
command: custom
customCommand: run build-prod
displayName: 'Build React Files'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'build'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/reactDrop.zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/reactDrop.zip'
artifactName: 'reactDrop'