Skip to content

Commit 478d074

Browse files
committed
add pushing of the merged commit
1 parent 508344e commit 478d074

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
PROJECT_ROOT,
77
} from './constants';
88
import { spawnSync as spawnSyncFn } from '../helpers/spawn-sync';
9-
import type { SpawnSyncOptionsWithStringEncoding } from 'child_process';
9+
import { spawn, type SpawnSyncOptionsWithStringEncoding } from 'child_process';
1010
import {
1111
getPackagesInTopologicalOrder as getPackagesInTopologicalOrderFn,
1212
PackageInfo,
@@ -93,6 +93,12 @@ export function publishToNpm(
9393
['merge', '--squash', `origin/release/${mongoshVersion}`],
9494
commandOptions
9595
);
96+
spawnSync(
97+
'git',
98+
['commit', '-m', `chore(release): release mongosh v${mongoshVersion}`],
99+
commandOptions
100+
);
101+
spawnSync('git', ['push', 'origin', 'main'], commandOptions);
96102
}
97103
}
98104

0 commit comments

Comments
 (0)