Skip to content

Commit 193aa09

Browse files
committed
add bumping commit to release draft
1 parent bad9d59 commit 193aa09

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.evergreen/evergreen.yml.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,9 @@ functions:
917917
{
918918
export NODE_JS_VERSION=${node_js_version}
919919
source .evergreen/setup-env.sh
920+
npm run evergreen-release bump
921+
git add .
922+
git commit --no-allow-empty -m "chore(release): bump to prepare for mongosh release"
920923
npm run evergreen-release draft
921924
}
922925

packages/build/src/npm-packages/bump.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { promises as fs } from 'fs';
99
import path from 'path';
1010
import { getPackagesInTopologicalOrder } from '@mongodb-js/monorepo-tools';
1111

12-
/** This bumps only the main mongosh release packages to the set version. */
13-
export async function bumpMongosh(version: string): Promise<void> {
12+
/** Bumps only the main mongosh release packages to the set version. */
13+
export async function bumpMongoshReleasePackages(
14+
version: string
15+
): Promise<void> {
1416
console.info(`mongosh: Bumping package versions to ${version}`);
1517
const monorepoRootPath = path.resolve(__dirname, '..', '..', '..', '..');
1618
const packages = await getPackagesInTopologicalOrder(monorepoRootPath);
@@ -51,8 +53,8 @@ export async function bumpMongosh(version: string): Promise<void> {
5153
}
5254
}
5355

54-
/** Bump packages without setting a new version of mongosh. */
55-
export function bumpNpmPackages() {
56+
/** Bumps independent packages without setting a new version of mongosh. */
57+
export function bumpIndependentPackages() {
5658
spawnSync('bump-monorepo-packages', [], {
5759
stdio: 'inherit',
5860
cwd: PROJECT_ROOT,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { bumpNpmPackages } from './bump';
1+
export { bumpIndependentPackages } from './bump';
22
export { publishNpmPackages } from './publish';

packages/build/src/release.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ import {
1414
} from './evergreen';
1515
import { GithubRepo } from '@mongodb-js/devtools-github-repo';
1616
import { publishToHomebrew } from './homebrew';
17-
import { bumpNpmPackages, publishNpmPackages } from './npm-packages';
17+
import { bumpIndependentPackages, publishNpmPackages } from './npm-packages';
1818
import { runPackage } from './packaging';
1919
import { runDraft } from './run-draft';
2020
import { runPublish } from './run-publish';
2121
import { runUpload } from './run-upload';
2222
import { runSign } from './packaging/run-sign';
2323
import { runDownloadAndListArtifacts } from './run-download-and-list-artifacts';
2424
import { runDownloadCryptLibrary } from './packaging/run-download-crypt-library';
25-
import { bumpMongosh } from './npm-packages/bump';
25+
import { bumpMongoshReleasePackages } from './npm-packages/bump';
2626

2727
export type ReleaseCommand =
2828
| 'bump'
@@ -56,8 +56,8 @@ export async function release(
5656
);
5757

5858
if (command === 'bump') {
59-
await bumpMongosh(config.version);
60-
bumpNpmPackages();
59+
bumpIndependentPackages();
60+
await bumpMongoshReleasePackages(config.version);
6161
return;
6262
}
6363

0 commit comments

Comments
 (0)