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 1
1
export { publishNpmPackages } from './publish' ;
2
+ export { bumpNpmPackages } from './bump' ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
} from './evergreen' ;
15
15
import { GithubRepo } from '@mongodb-js/devtools-github-repo' ;
16
16
import { publishToHomebrew } from './homebrew' ;
17
- import { publishNpmPackages } from './npm-packages' ;
17
+ import { bumpNpmPackages , publishNpmPackages } from './npm-packages' ;
18
18
import { runPackage } from './packaging' ;
19
19
import { runDraft } from './run-draft' ;
20
20
import { runPublish } from './run-publish' ;
@@ -54,6 +54,12 @@ export async function release(
54
54
redactConfig ( config )
55
55
) ;
56
56
57
+ if ( command === 'bump' ) {
58
+ // updates the version of internal packages to reflect the tagged one
59
+ bumpNpmPackages ( ) ;
60
+ return ;
61
+ }
62
+
57
63
const octokit = new Octokit ( {
58
64
auth : config . githubToken ,
59
65
} ) ;
You can’t perform that action at this time.
0 commit comments