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:
Kamil Pajdzik 2019-05-13 10:50:28 -07:00 коммит произвёл GitHub
Родитель 9559246bce
Коммит cc9c3f44aa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 19 добавлений и 13 удалений

Просмотреть файл

@ -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