fix(release): skip changelog generation for projects without available version data (#29212)

This commit is contained in:
Thomas Dekiere 2024-12-05 13:38:04 +01:00 committed by GitHub
parent 2fa3ce21d4
commit b848bb3dba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1230,7 +1230,10 @@ async function generateChangelogForProjects({
* newVersion will be null in the case that no changes were detected (e.g. in conventional commits mode),
* no changelog entry is relevant in that case.
*/
if (projectsVersionData[project.name].newVersion === null) {
if (
!projectsVersionData[project.name] ||
projectsVersionData[project.name].newVersion === null
) {
continue;
}