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

Tweak rootHasVersionBump logic #8019

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Tweak rootHasVersionBump logic #8019

merged 1 commit into from
Aug 14, 2024

Conversation

mikachan
Copy link
Member

Changes proposed in this Pull Request:

Tweaks the version bump logic so the root project version is only bumped if there are changes.

Hopefully prevents unnecessary version bumps from happening, like this: #8018

@mikachan mikachan added the Tools label Aug 14, 2024
Copy link
Contributor

@vcanales vcanales left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@mikachan mikachan merged commit 0e66200 into trunk Aug 14, 2024
2 checks passed
@mikachan mikachan deleted the try/fix-versionBumpThemes branch August 14, 2024 17:04
console.log('No changes detected; version bump not required');
}

if (versionBumpCount > 0 && rootHasVersionBump) {
Copy link
Contributor

@miksansegundo miksansegundo Aug 15, 2024

Choose a reason for hiding this comment

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

I have had to update this logic because otherwise the version wasn't bumped when theme changes are made. See 2ba4dd2#diff-877b4284538ebb4cf1411cf4487c456bda52082b9e72e4a0b6770d5a80d7d5a9R677

versionBumpCount is a count for the theme bumps done for changed themes.

rootHasVersionBump is a boolean that tell us if the root package version has changed from the previews release tag.

Therefore, we can skip the root package bump only when versionBumpCount === 0 and we must bump it when it's not done yet rootHasVersionBump === false.

cc: @dsas

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @miksansegundo 👍

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

Successfully merging this pull request may close these issues.

3 participants