Skip to content

Commit 41bc10a

Browse files
committed
ensure compatibility with old bump
1 parent 21b62b8 commit 41bc10a

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { spawnSync } from '../helpers';
2+
import { PROJECT_ROOT } from './constants';
3+
4+
export function bumpNpmPackages() {
5+
spawnSync('npm', ['run', 'bump-packages'], {
6+
stdio: 'inherit',
7+
cwd: PROJECT_ROOT,
8+
encoding: 'utf8',
9+
env: {
10+
...process.env,
11+
},
12+
});
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { publishNpmPackages } from './publish';
2+
export { bumpNpmPackages } from './bump';

packages/build/src/release.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from './evergreen';
1515
import { GithubRepo } from '@mongodb-js/devtools-github-repo';
1616
import { publishToHomebrew } from './homebrew';
17-
import { publishNpmPackages } from './npm-packages';
17+
import { bumpNpmPackages, publishNpmPackages } from './npm-packages';
1818
import { runPackage } from './packaging';
1919
import { runDraft } from './run-draft';
2020
import { runPublish } from './run-publish';
@@ -54,6 +54,12 @@ export async function release(
5454
redactConfig(config)
5555
);
5656

57+
if (command === 'bump') {
58+
// updates the version of internal packages to reflect the tagged one
59+
bumpNpmPackages();
60+
return;
61+
}
62+
5763
const octokit = new Octokit({
5864
auth: config.githubToken,
5965
});

0 commit comments

Comments
 (0)