When you use the NpmPublish native step in a pipeline, it performs the following functions in the background. For more information about NpmPublish Pipeline steps, see NpmPublish.
jfrog rt use (specify the configured credentials to use)
restore_run_files (copy the output and build info from the NpmBuild step)
jfrog rt npm-config (configure the deploy repo)
jfrog rt npm-publish
jfrog rt build-publish (if autoPublishBuildInfo is true, publish the build info)
write_output (if autoPublishBuildInfo is true, update the output BuildInfo resource)
jfrog rt build-scan (if forceXrayScan is true, trigger a scan)
add_run_files (update the build info saved in run state)