File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11export { publishNpmPackages } from './publish' ;
2+ export { bumpNpmPackages } from './bump' ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414} from './evergreen' ;
1515import { GithubRepo } from '@mongodb-js/devtools-github-repo' ;
1616import { publishToHomebrew } from './homebrew' ;
17- import { publishNpmPackages } from './npm-packages' ;
17+ import { bumpNpmPackages , publishNpmPackages } from './npm-packages' ;
1818import { runPackage } from './packaging' ;
1919import { runDraft } from './run-draft' ;
2020import { 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 } ) ;
You can’t perform that action at this time.
0 commit comments