From b848bb3dba92e75f1eed9afc0fdc9b28fd39895d Mon Sep 17 00:00:00 2001 From: Thomas Dekiere Date: Thu, 5 Dec 2024 13:38:04 +0100 Subject: [PATCH] fix(release): skip changelog generation for projects without available version data (#29212) --- packages/nx/src/command-line/release/changelog.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/release/changelog.ts b/packages/nx/src/command-line/release/changelog.ts index fd97f74adb1b3..2c38293e6af3b 100644 --- a/packages/nx/src/command-line/release/changelog.ts +++ b/packages/nx/src/command-line/release/changelog.ts @@ -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; }