WonChul Heo
WonChul Heo

Reputation: 264

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.

Upvotes: 1

Views: 1022

Answers (2)

Clyde D'Souza
Clyde D'Souza

Reputation: 452

A bit late to the party, but you can achieve this using GitHub Actions. Refer to this workflow file where I'm publishing my npm package to the npm js registry and also to the GitHub registry.

Upvotes: 1

Hung Nguyen
Hung Nguyen

Reputation: 1156

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.

Upvotes: 1

Related Questions