New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing to multiple registries #194
Comments
It should now. I tried a while ago and the only blocker was that GPR created tags & releases when publishing a package, that behavior has recently been removed so no conflict errors should occur. All you'd need to do is set the different registry URL and set |
Thank you @gr2m for the feedback!
Could you please be more specific on how can I set the different registry URL? |
It came up in the discussion here: I think that the GitHub registry now also works as a proxy for npm's registry, I don't know if that means that it will publish to both or only fallback to the latter on install |
I don't think publishing to two different registry is a good idea. It just create an opportunity for inconsistencies. As the GitHub Registry is a proxy to the npm one, you can publish to the npm registry and your package is going to be available to users using the GitHub one. If you publish to the GitHub one, I guess your package will be accessible only to the GitHub registry users. |
That's a good point, GitHub kinda solved to need to publish to two registries for a transitional time. Does that resolve your problem Limon? |
Closing as no response provided |
@pvdlg it seems given the docs on setup-node github action that you should just set the NPM_TOKEN to what the GITHUB_TOKEN should be, I've done this but semantic release seems to error. https://github.com/actions/setup-node https://github.com/lifeiscontent/isomorphic-querystring/blob/master/.github/workflows/ci.yml can we update semantic release to accommodate what setup-node does? |
@lifeiscontent setting the jobs:
release:
steps:
- name: Build and publish release.
run: npx semantic-release
env:
GH_TOKEN: secrets.GITHUB_TOKEN
NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GITHUB_TOKEN }} (Or you could use the simple template repo I've set up!) |
GitHub Package Registry is in public beta stage now 馃帀 馃帀 馃帀
Which means that developers will want to publish their npm packages to both npm and GitHub registries.
Is it possible to configure
semantic-release
so it'll publish to multiple registries at the same time?The text was updated successfully, but these errors were encountered: