To deploy your package to an Artifactory repository, you can do one of the following:
Add the following to the
package.json
file:"publishConfig":{"registry":"https://artifactory.mycompany.com/artifactory/api/npm/<npm repository name>/"}
And then run the default yarn publish command:
yarn publish
Provide the npm repository you wish to publish to using the yarn publish command as follows:
yarn publish --registry https://artifactory.mycompany.com/artifactory/api/npm/<npm repository name>/