Skip to content

Commit a3c4510

Browse files
committed
ci(release): Fix picking proper projects for publishing and improve logging
1 parent 2ea12bd commit a3c4510

File tree

1 file changed

+14
-27
lines changed

1 file changed

+14
-27
lines changed

tools/scripts/release/release.ts

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)