Commit
When you’re ready to cut a release of a project, you’ll run bumper commit to process all of the pending bumps that have been added since the last release.
Worked example
Section titled “Worked example”Let’s imagine on your main branch you have a monorepo with two release groups:
dashboardwhich is currently at version 3.14.1apiwhich is currently at version 1.7.4
Over time, three pull requests have been merged that added the following bump files:
.bumper/ bump-gentle-camels-cross-lazily.md bump-curious-dolphins-dance-daily.md bump-happy-elephants-eat-enthusiastically.md versions.tomlapi/dashboard/CHANGELOG.md---dashboard: minor---
Added an account settings page where users can update their profile information.---api: patchdashboard: patch---
Fixed a bug where the API would return a 500 error when no authentication token was provided.---dashboard: patch---
Updated the dashboard to include a graph of share price over time.When you run bumper commit, it will determine the following:
dashboardhas three bumps: one “minor” and two “patch” -> The highest level bump is “minor” -> The new version will be 3.15.0.apihas one bump: a “patch” -> The new version will be 1.7.5.
If you’re using the out of the box defaults, it will:
-
Update
.bumper/versions.tomlto reflect these new versions..bumper/versions.toml [versions]dashboard = "3.15.0"api = "1.7.5" -
Insert the following to the top of
CHANGELOG.md:CHANGELOG.md # Changelog## api 1.7.5### Patch Changes- Fixed a bug where the API would return a 500 error when no authentication token was provided.## dashboard 3.15.0### Minor Changes- Added an account settings page where users can update their profile information.### Patch Changes- Fixed a bug where the API would return a 500 error when no authentication token was provided.- Updated the dashboard to include a graph of share price over time.... rest of changelog ...