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

fix(publish): continue publishing with errors #26829

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

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Nov 12, 2024

In a workspace of two packages A and B, failure during publishing of package B can lead to provenance step being skipped of package A. This PR makes it print out the error and continue publishing other packages instead of a fast fail.

@lucacasonato
Copy link
Member

Please make sure we still exit with code 1 at the end.

lucacasonato
lucacasonato previously approved these changes Nov 12, 2024
@lucacasonato
Copy link
Member

Actually, I am not sure this works. Doesn't the .next() function that gets the next batch of packages just get stuck when any module fails?

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a workspace of two packages A and B, failure during publishing of package B can lead to provenance step being skipped of package A.

It sounds like we should change the code so that the provenance is verified after publish of package A before moving on to package B.

Also, what issue is this fixing? It would be good to add a test to demonstrate the fix and show the problem.

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.

3 participants