-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Only show packages in the dry run that need publishing #90
Conversation
hmm, realizing I might need to approach this differently |
Yeah, my thought was that instead of running through all packages here https://github.com/MetaMask/action-npm-publish/blob/main/scripts/main.sh#L11 we could figure out the packages whose versions have changed ahead of time and then just iterate over those. Would that work? |
f5c1bfc
to
c1f5049
Compare
@rickycodes I took a look at the checks that were run on this PR, and I am not sure this solves the pain point that I outlined in the original ticket. The problem is not necessarily that we attempt to "dry run" publish packages that haven't changed. The problem is that packages that haven't changed still show up in the job output. For instance, in this PR, only What do you think? |
Is it just a matter of removing the action-npm-publish/scripts/main.sh Line 3 in 7cf06c2
That seems to account for most of the output at the moment. And we could reduce output further by omitting a message in the case where we decide a package can be skipped. With those gone, it should be 1-2 lines per package, which seems more than good enough. I think we'd need to loop through each workspace twice to get extraneous output to zero (and omit the |
@Gudahtt Sure, if we could remove @rickycodes What are your thoughts on that? |
@mcmire let me know if this works! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
closes #58
this will also ensure reports are only generated for packages that have changes