The YAML schema for NpmPublish native step is as follows:
NpmPublish
pipelines:
- name: <string>
steps:
- name: <string>
type: NpmPublish
configuration:
#inherits all the tags from bash
# for payloadType npm:
deployerRepo: <string> # optional, npm repository name on artifactory
repositoryName: <string> # optional, npm repository name on artifactory
forceXrayScan: <boolean> # optional
failOnScan: <boolean> # default true
autoPublishBuildInfo: <boolean> # optional
integrations:
- name: <artifactory integration or JFrog platform access token integration> # required
inputSteps:
- name: <NpmBuild step> # required
outputResources:
- name: <BuildInfo resource> # optional
execution:
onStart:
- echo "Preparing for work..."
onSuccess:
- echo "Job well done!"
onFailure:
- echo "uh oh, something went wrong"
onComplete: #always
- echo "Cleaning up some stuff"