Move artifacts publishing to CI job (#113)
* Move artifacts publishing to CI job * Update .devops/azure-pipelines-pr.yml Co-Authored-By: Dan Schulte <daschult@microsoft.com> * Update .devops/azure-pipelines-pr.yml Co-Authored-By: Dan Schulte <daschult@microsoft.com> * Add npm install step
This commit is contained in:
Родитель
9559246bce
Коммит
cc9c3f44aa
|
@ -46,13 +46,21 @@ jobs:
|
|||
codeCoverageTool: Cobertura
|
||||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
|
||||
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage/'
|
||||
- job: Build
|
||||
- job: Pack
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
steps:
|
||||
- task: Npm@1
|
||||
displayName: 'npm build'
|
||||
displayName: 'npm pack'
|
||||
inputs:
|
||||
command: custom
|
||||
verbose: false
|
||||
customCommand: build
|
||||
customCommand: pack
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to: drop'
|
||||
inputs:
|
||||
Contents: '*.tgz'
|
||||
TargetFolder: drop
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
pathtoPublish: $(Build.SourcesDirectory)/drop
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
trigger:
|
||||
- master
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
- job: Check_Everything
|
||||
|
@ -57,16 +57,14 @@ jobs:
|
|||
vmImage: 'Ubuntu 16.04'
|
||||
steps:
|
||||
- task: Npm@1
|
||||
displayName: 'npm pack'
|
||||
displayName: 'npm install'
|
||||
inputs:
|
||||
command: custom
|
||||
verbose: false
|
||||
customCommand: pack
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to: drop'
|
||||
customCommand: install
|
||||
- task: Npm@1
|
||||
displayName: 'npm run build'
|
||||
inputs:
|
||||
Contents: '*.tgz'
|
||||
TargetFolder: drop
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
pathtoPublish: $(Build.SourcesDirectory)/drop
|
||||
command: custom
|
||||
verbose: true
|
||||
customCommand: run build
|
||||
|
|
Загрузка…
Ссылка в новой задаче