File tree 1 file changed +9
-3
lines changed
lib/node_modules/@stdlib/_tools/scripts
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -685,9 +685,15 @@ function publish( pkg, clbk ) {
685
685
return invokeCallback ( null , 'skipped' ) ;
686
686
}
687
687
688
- changelog = generateChangelog ( '@stdlib/' + pkg , {
689
- 'releaseType' : flags [ 'release-type' ]
690
- } ) ;
688
+ if ( flags [ 'release-type' ] ) {
689
+ // Case: release type specified, so we generate a changelog for the specified release type...
690
+ changelog = generateChangelog ( '@stdlib/' + pkg , {
691
+ 'releaseType' : flags [ 'release-type' ]
692
+ } ) ;
693
+ } else {
694
+ // Case: no release type specified, so we generate a changelog for a non-release...
695
+ changelog = generateChangelog ( '@stdlib/' + pkg ) ;
696
+ }
691
697
releaseType = changelog . releaseType ;
692
698
693
699
mainJSON = readJSON ( join ( mainDir , 'package.json' ) ) ;
You can’t perform that action at this time.
0 commit comments