Skip to content

Commit

Permalink
generate npm package as part of pipeline (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmasson authored Apr 8, 2020
1 parent 2745e67 commit 29f8215
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,25 @@ steps:
command: 'custom'
customCommand: 'test'

- task: Npm@1
displayName: 'pack'
inputs:
command: 'custom'
customCommand: 'pack'

- task: CopyFiles@2
displayName: 'copy package to out directory'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '*.tgz'
TargetFolder: '$(Build.SourcesDirectory)/out'
OverWrite: true

- task: PoliCheck@1
inputs:
inputType: 'Basic'
targetType: 'F'
targetArgument: '$(Build.SourcesDirectory)/src'
targetArgument: 'src'
result: 'PoliCheck.xml'

- task: PublishTestResults@2
Expand All @@ -54,6 +68,12 @@ steps:
ArtifactName: lib
displayName: 'publish lib'

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/out'
ArtifactName: out
displayName: 'publish out directory'

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/../_sdt/logs/PoliCheck'
Expand Down

0 comments on commit 29f8215

Please sign in to comment.