File tree Expand file tree Collapse file tree 1 file changed +14
-27
lines changed
Expand file tree Collapse file tree 1 file changed +14
-27
lines changed Original file line number Diff line number Diff line change @@ -87,36 +87,23 @@ import { handleChangelog } from './changelog';
8787 gitPush : githubRelease || isCI ? true : undefined ,
8888 } ,
8989 } ) ;
90+
9091 // Add this project to projects list that will be published
91- projectsList . add ( projectName ) ;
92+ if ( versionData [ projectName ] . newVersion !== null ) {
93+ projectsList . add ( projectName ) ;
94+ } else {
95+ console . log (
96+ printHeader ( 'Publish' , 'cyanBright' ) ,
97+ `Skip publishing ${ projectName } as newVersion is ${ chalk . grey ( 'null' ) } `
98+ ) ;
99+ }
100+ } else {
101+ console . log (
102+ printHeader ( 'Changelog' , 'yellow' ) ,
103+ `Skip generating changelog as versionData is ${ chalk . grey ( 'null' ) } `
104+ ) ;
92105 }
93106 }
94- /*if (isPrerelease) {
95- const versionData = await handlePrereleaseVersioning({
96- preid,
97- projects,
98- dryRun,
99- verbose,
100- });
101- await handlePrereleaseChangelog({
102- versionData,
103- dryRun,
104- verbose,
105- });
106- } else {
107- const versionData = await handleRegularReleaseVersioning({
108- preid,
109- projects,
110- dryRun,
111- verbose,
112- });
113-
114- await handleRegularReleaseChangelog({
115- versionData,
116- dryRun,
117- verbose,
118- });
119- }*/
120107 }
121108
122109 console . log ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments