-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrontEnd.yml
More file actions
34 lines (33 loc) · 819 Bytes
/
FrontEnd.yml
File metadata and controls
34 lines (33 loc) · 819 Bytes
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
trigger:
branches:
include:
- master
stages:
- stage: __default
jobs:
- job: Job
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- task: CmdLine@2
displayName: 'npm install and build'
inputs:
script: |
npm install
npm run build
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: 'build/**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: 'Copy build output to Artifact Staging'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts'
inputs:
PathtoPublish: 'build'
ArtifactName: 'drop'
publishLocation: 'Container'