Friday, January 3, 2020

Add tasks to an Azure DevOps pipeline to run npm commands.

When you scroll through the list of possible tasks, there will be one called "npm" and you should add that in. If you click on it in the pipeline steps at the left, the options for the step will show up at the right. Here there is a drop down list dubbed "Command" and it has the following options in it:

  1. install which will run "npm install"
  2. publish which will publish files somewhere
  3. custom wherein you will specify your own command such as "run build" and the processes under the hood will lead it with "npm" so that something like "npm run build" is run

No comments:

Post a Comment