From 21c5d45bd9ca4b889f63d0f115f3dfd51b084840 Mon Sep 17 00:00:00 2001 From: Gagik Amaryan Date: Tue, 28 Jan 2025 15:42:18 +0100 Subject: [PATCH] fix(ci): use the correct commit message when bumping packages MONGOSH-1871 (#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. --- packages/build/src/npm-packages/bump.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index f4c337e2d..0cce8e148 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -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,