Skip to content

Commit adbbaba

Browse files
JamesHenryFrozenPandaz
authored andcommitted
fix(release): skip dependents of projects without changes in conventional commits (#26671)
(cherry picked from commit d356f61)
1 parent 82f7a5f commit adbbaba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/nx/src/command-line/release/changelog.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,16 @@ export async function releaseChangelog(
397397
continue;
398398
}
399399
for (const project of releaseGroup.projects) {
400+
// If the project does not have any changes, do not process its dependents
401+
if (
402+
!projectsVersionData[project] ||
403+
projectsVersionData[project].newVersion === null
404+
) {
405+
continue;
406+
}
407+
400408
const dependentProjects = (
401-
projectsVersionData[project]?.dependentProjects || []
409+
projectsVersionData[project].dependentProjects || []
402410
)
403411
.map((dep) => {
404412
return {

0 commit comments

Comments
 (0)