You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipelines/ecosystems/javascript.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -78,11 +78,16 @@ Edit your *azure-pipelines.yml* file as follows.
78
78
- script: |
79
79
npm run build
80
80
displayName: 'npm build'
81
+
82
+
- script:
83
+
npm test
84
+
displayname: 'npm test'
85
+
81
86
```
82
87
83
88
1. Add the following new tasks to the pipeline:
84
89
85
-
- The [copy files task](/azure/devops/pipelines/tasks/reference/copy-files-v2) copies the npm package and *package.json* files from the local download path on the agent and saves them to a local artifact staging path on the agent. Only the *src* and *public* folders are copied.
90
+
- The [copy files task](/azure/devops/pipelines/tasks/reference/copy-files-v2) copies the files from the *src* and *public* folders to the build artifact staging directory.
86
91
87
92
- The [publish pipeline artifact task](../artifacts/pipeline-artifacts.md) gets the files from the artifact staging location and publishes them as artifacts to be output with pipeline builds.
0 commit comments