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

[RFC] Transactional publish in npm-publish workspace command #696

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vighnesh153
Copy link

When running npm publish --workspace packages --transactional in a monorepo, it should run in a transaction so that if publishing of any (or multiple) package fails, it automatically rollback the other published packages.

References

None

@vighnesh153 vighnesh153 requested a review from a team as a code owner June 4, 2023 10:02
@ljharb
Copy link
Contributor

ljharb commented Jun 4, 2023

This seems like a good enhancement on top of #92, which remains very critically needed.

@wraithgar
Copy link
Member

This has been brought up many times in the past and is essentially a registry feature not a cli feature. There is currently no way to "roll back" an already published package. That version is out and can not be used again.

@ruyadorno
Copy link
Contributor

well, I'd argue that the cli component proposed here is blocked by registry improvements such as #92 pointed by @ljharb above, that could potentially unlock a transactional-like publishing experience for workspaces once all packages are in a staging area

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

Successfully merging this pull request may close these issues.

None yet

4 participants