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

feat(lerna): add release-by-pr action #36

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

Conversation

kylemellander
Copy link
Collaborator

Lerna is a way to manage our monorepos. This action allows for the creation of a release PR using lerna as its core. This created a scenario where things were different enough to where the logic did not feel like it warranted sharing much (especially since there are only 2 versions). The general flow is:

  • Detect changes - if there are none, bail early
  • Check Out the release branch and set it to main
  • Run lerna to bump the version (this will automatically detect what type of version bump it is based on git commit history)
  • If nothing is updated (only internal changes), bail early
  • Push the changes to the release branch
  • Create or update release PR with the changelog updates
  • assign reviewers who wrote the commits.

The key thing about this workflow is that the version bump is automated based on commit history. This is a benefit, but also a limiter of using automations. It allows us to not have to manually update the changelog, however.

Additional Changes

In addition, now that there are 3 different actions that build TypeScript, I moved the configuration for formatting and tsconfig to a global place.

@kylemellander kylemellander requested a review from a team as a code owner December 19, 2024 16:34
@kylemellander kylemellander self-assigned this Dec 19, 2024
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