Skip to content

Commit

Permalink
fix(ci): use the correct commit message when bumping packages MONGOSH…
Browse files Browse the repository at this point in the history
…-1871 (mongodb-js#2333)

bump-packages from monorepo-tools is looking for chore(ci): bump packages as the start of the commit to calculate the semver bump. The problem is that our commit message doesn't start with this - instead it's chore(release): bump auxiliary packages. This means that the next time we run it, we go back to the start of time and sure enough, we find some breaking commit message and decide we need to bump major. Luckily there's a LAST_BUMP_COMMIT_MESSAGE we can use to set this, so this does that.
  • Loading branch information
gagik authored Jan 28, 2025
1 parent 9e7d980 commit 21c5d45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/build/src/npm-packages/bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export function bumpAuxiliaryPackages() {
encoding: 'utf8',
env: {
...process.env,
LAST_BUMP_COMMIT_MESSAGE: 'chore(release): bump auxiliary packages',
SKIP_BUMP_PACKAGES: [
...EXCLUDE_RELEASE_PACKAGES,
...MONGOSH_RELEASE_PACKAGES,
Expand Down

0 comments on commit 21c5d45

Please sign in to comment.