Skip to content

Update changelogs correctly for monorepo packages #50

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

Merged
merged 2 commits into from
Nov 8, 2022

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 8, 2022

Packages within a monorepo should now have their changelogs correctly updated. Previously the update step was incorrectly expecting the monorepo package to be using a tag of the format v[version]. This is not how we tag packages within an indepentently versioned monorepo because we need some way to distinguish the tags used for each project.

This step has been updated to specify the expected tag prefix as being the package name followed by @.

Fixes #43

@Gudahtt Gudahtt force-pushed the fix-monorepo-changelog-update branch 2 times, most recently from 8568ae1 to b75528c Compare November 8, 2022 15:01
Packages within a monorepo should now have their changelogs correctly
updated. Previously the update step was incorrectly expecting the
monorepo package to be using a tag of the format `v[version]`. This is
not how we tag packages within an indepentently versioned monorepo
because we need some way to distinguish the tags used for each project.

This step has been updated to specify the expected tag prefix as being
the package name followed by `@`.
@Gudahtt Gudahtt force-pushed the fix-monorepo-changelog-update branch from b75528c to 8f22a5e Compare November 8, 2022 15:33
@Gudahtt Gudahtt marked this pull request as ready for review November 8, 2022 15:33
@Gudahtt Gudahtt requested a review from a team as a code owner November 8, 2022 15:33
@Gudahtt
Copy link
Member Author

Gudahtt commented Nov 8, 2022

This is ready for review, except that the problem and solution aren't well tested at the moment. I'm looking at adding a couple more functional tests now to cover those.

Two tests have been added to ensure changelog updates work correctly.
One test handles the first package release, and the other test handles
all other packages releases after the first.
@Gudahtt
Copy link
Member Author

Gudahtt commented Nov 8, 2022

Alright, this should be fully ready for review now. Two additional tests have been added to cover this behavior.

Copy link

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

Awesome work ❤️

@Gudahtt Gudahtt merged commit 90f90f6 into main Nov 8, 2022
@Gudahtt Gudahtt deleted the fix-monorepo-changelog-update branch November 8, 2022 17:44
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.

Bug when creating a branch for a non-initial release for a monorepo with independent versions
3 participants