Skip to content

Instantly share code, notes, and snippets.

@mattnorris
mattnorris / publish_to_private_npm_from_ci.md
Created May 28, 2021 19:52 — forked from silentHoo/publish_to_private_npm_from_ci.md
Push and pull into and from your private npm registry via CI pipeline

Publish to private npm registry from your CI pipeline

If you want to publish packages to your private registry, e.g. to jfrog.io/Verdaccio/... you should note some important things:

1) Authenticate on your local machine

To authenticate against the private repository, you've to use the npm cli tool. But first you should get your API access token. That's safer than using your password.

npm adduser --registry https://<registry_url>/<api_path>/ --always-auth