Skip to content

Skip publishing packages that aren't bumped#1126

Merged
ecraig12345 merged 3 commits intomainfrom
ecraig/packages-publish-fix
Dec 20, 2025
Merged

Skip publishing packages that aren't bumped#1126
ecraig12345 merged 3 commits intomainfrom
ecraig/packages-publish-fix

Conversation

@ecraig12345
Copy link
Copy Markdown
Member

@ecraig12345 ecraig12345 commented Dec 20, 2025

For reasons described in #1123, it's possible that a package could end up in the modifiedPackages list even if it's not being bumped (with bumpDeps: false or scope). This would probably cause publishing to fail when validatePackageVersions is called since that version would already exist in the registry.

This PR updates getPackagesToPublish to skip packages that aren't new but have no calculatedChangeTypes entry (so their version isn't actually being bumped). I also updated the args of getPackagesToPublish to be more explicit about their behavior, and added tests.

Other changes are just semi-related comment and test improvements, including more realistic publishing tests.

(Working on this change brought up some questions about nuances of bump=false/--no-bump which are documented in #1125 and would require more thought to fix.)

@ecraig12345 ecraig12345 force-pushed the ecraig/packages-publish-fix branch from ebd9f6c to 3cf4910 Compare December 20, 2025 07:25
@ecraig12345 ecraig12345 force-pushed the ecraig/packages-publish-fix branch from 3cf4910 to a12984f Compare December 20, 2025 07:49
@ecraig12345 ecraig12345 merged commit a460008 into main Dec 20, 2025
8 checks passed
@ecraig12345 ecraig12345 deleted the ecraig/packages-publish-fix branch December 20, 2025 09:23
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.

1 participant