This video describes how to implement a jenkins pipeline to perform npm build and upload/Download packages to/from Nexus.
This explains the below.
1. Checkout the code from Github
2. Install npm client in jenkins agent
3. Create user auth info for npm client to download/upload packages from/to nexus
4. Use auth info and perform npm install
5. Perform npm publish
Please go through the below videos for reference.
1. Jenkins credentials setup for Github.
• How to create Jenkins credentials to ...
2. npm upload/download packages to/from nexus from command line.
• npm upload/publish & download package...