Working with Node.js and NPM tasks
You need to use Node.js and NPM commands to build and deploy Node.js applications. There are many predefined tasks to build such applications in an Azure pipeline. Follow these steps to create a pipeline using Node.js and NPM tasks:
- After logging in to the Azure DevOps portal, select your organization, navigate to the Pipelines page, and click on New pipeline:
Figure 5.1 – A new pipeline
- Select Azure Repos Git, which is a source code repository for this demo:
Figure 5.2 – Selecting Azure Repos Git
- Select the PacktAzureDevOps repository that we created in Chapter 2:
Figure 5.3 – Selecting a repository
- Click on Show more:
Figure 5.4 – Showing more tasks
- Select the Node.js option:
Figure 5.5 – Selecting Node...