File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -17,33 +17,37 @@ steps:
1717
1818 - script : |
1919 npm install --progress=false --loglevel=error --no-fund
20+ npm run build
2021 npm run coverage
21- displayName: 'npm install and test'
22+ displayName: 'npm install, build and test'
2223
2324 - task : PublishTestResults@2
2425 condition : succeededOrFailed()
2526 inputs :
2627 testRunner : JUnit
27- testResultsFiles : ' Coverage /test-results.xml'
28+ testResultsFiles : ' coverage /test-results.xml'
2829
2930 - task : PublishCodeCoverageResults@1
3031 inputs :
3132 codeCoverageTool : Cobertura
3233 summaryFileLocation : ' $(System.DefaultWorkingDirectory)/**/*coverage.xml'
3334 reportDirectory : ' $(System.DefaultWorkingDirectory)/**/coverage'
3435
35- - script : |
36- npm pack
37- displayName: 'Create package'
38-
3936 - task : CopyFiles@2
4037 inputs :
41- contents : ' *.tgz'
42- targetFolder : $(Build.ArtifactStagingDirectory)
43- displayName : ' Copy package to artifacts staging directory'
38+ SourceFolder : ' $(Build.SourcesDirectory)'
39+ Contents : |
40+ dist/**
41+ LICENSE
42+ package.json
43+ README.md
44+ .gitignore
45+ .npmignore
46+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
4447
4548 - task : PublishBuildArtifacts@1
4649 inputs :
47- path : $(Build.ArtifactStagingDirectory)
48- artifact : package
50+ PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
51+ ArtifactName : ' drop'
52+ publishLocation : ' Container'
4953 displayName : ' Publish artifacts'
You can’t perform that action at this time.
0 commit comments