fix(release): skip dependents of projects without changes in conventional commits (#26671)

This commit is contained in:
James Henry 2024-06-25 20:56:23 +04:00 committed by GitHub
parent e04b5761de
commit d356f61192
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {