Search code examples
javascriptnpmnpm-publishgithub-package-registry

Can I publish a library to multiple npm registries at the same time?


I created one repository and library. And I want to publish to npm registry and github package at the same time. Do you know an easy way to do this?

I am currently publishing this with a change. It would be great if this could be solved with a simple setup.


Solution

  • Currently, you can achieve it with lerna or bit .

    Both two libraries allow you to manage multiple packages on the same repo (monorepo). lerna is absolutely free and bit will have paid plan if you working on a commercial project.