Example Jenkins pipeline scripts that show how to publish and promote an NPM binary.
The Jenkinsfile-build-publish script requires the 'npm' CLI is installed and available for the Jenkins CI user. To use the JFrog CLI to publish the build to a JFrog Artifactory installation, you will need to download and install the CLI and have an Artifactory NPM repository called 'npm-snapshots' configured.
The Jenkinsfile-Promote script requires the JFrog CLI and two NPM repositories named 'npm-snapshots' and 'npm-releases'.