File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -321,12 +321,12 @@ gulp.task(
321
321
owner,
322
322
repo,
323
323
} ) ;
324
- const getCommits = github . repos . getCommits ( {
324
+ const listCommits = github . repos . listCommits ( {
325
325
owner,
326
326
repo,
327
327
per_page : 1 ,
328
328
} ) ;
329
- Promise . all ( [ getLatestRelease , getCommits ] ) . then ( ( [ latestRelease , commits ] ) => {
329
+ Promise . all ( [ getLatestRelease , listCommits ] ) . then ( ( [ latestRelease , commits ] ) => {
330
330
const preVersion = latestRelease . data . tag_name ;
331
331
const { version } = packageJson ;
332
332
const [ _ , newVersion ] = commits . data [ 0 ] . commit . message . trim ( ) . match ( / b u m p ( .+ ) / ) || [ ] ; // eslint-disable-line
@@ -335,8 +335,7 @@ gulp.task(
335
335
newVersion &&
336
336
newVersion . trim ( ) === version
337
337
) {
338
- gulp . run ( 'pub' , err => {
339
- err && console . log ( 'err' , err ) ;
338
+ runCmd ( 'npm' , [ 'pub' ] , code => {
340
339
done ( ) ;
341
340
} ) ;
342
341
} else {
You can’t perform that action at this time.
0 commit comments