Reputation: 264
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
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
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