diff --git a/packages/nx/src/command-line/release/changelog.ts b/packages/nx/src/command-line/release/changelog.ts index ea076efe2c956..344f9faf48b2e 100644 --- a/packages/nx/src/command-line/release/changelog.ts +++ b/packages/nx/src/command-line/release/changelog.ts @@ -397,8 +397,16 @@ export async function releaseChangelog( continue; } for (const project of releaseGroup.projects) { + // If the project does not have any changes, do not process its dependents + if ( + !projectsVersionData[project] || + projectsVersionData[project].newVersion === null + ) { + continue; + } + const dependentProjects = ( - projectsVersionData[project]?.dependentProjects || [] + projectsVersionData[project].dependentProjects || [] ) .map((dep) => { return {