Skip to content

Commit

Permalink
fix(release): skip dependents of projects without changes in conventi…
Browse files Browse the repository at this point in the history
…onal commits (#26671)

(cherry picked from commit d356f61)
  • Loading branch information
JamesHenry authored and FrozenPandaz committed Jun 26, 2024
1 parent 82f7a5f commit adbbaba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/nx/src/command-line/release/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit adbbaba

Please sign in to comment.