Deploy npm Packages Using Yarn

JFrog Artifactory Documentation

JFrog Artifactory
Content Type
User Guide

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":"<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<npm repository name>/