Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting publishing to multiple npm registries #603

Open
martenrichter opened this issue Feb 2, 2025 · 2 comments
Open

Supporting publishing to multiple npm registries #603

martenrichter opened this issue Feb 2, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@martenrichter
Copy link

Problem

I have created a jupyter lab extension and related packages for an open source software.
For historical reasons, the software publishes its internal packages to GitHub packages and all packages that can be useful to others to the normal npm registry.
How would it be possible to release to two package registries simultaneously?

Proposed Solution

May be an option to only publish npm packages? Or to pass multiple registries to the commands?

Additional context

@martenrichter martenrichter added the enhancement New feature or request label Feb 2, 2025
@jtpio
Copy link
Member

jtpio commented Feb 4, 2025

May be an option to only publish npm packages?

This may already be possible by skipping other steps such as the one building the Python artifacts?

Or to pass multiple registries to the commands?

Right, this would likely need to be added as a configurable. Currently not sure the releaser can handle publishing to multiple registries.

@martenrichter
Copy link
Author

Thanks this may work, I have just tried it.
But I was hit by the fact that other registry report slightly different error messages:

npm error code E409
npm error 409 Conflict - PUT https://npm.pkg.github.com/@fails-components%2fjupyter-applet-view - Cannot publish over existing version
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-02-09T16_49_14_715Z-debug-0.log

so that the special case in

if "EPUBLISHCONFLICT" in stderr or "previously published versions" in stderr:
is not applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants