Skip to content

Commit

Permalink
fix(release): skip changelog generation for projects without availabl…
Browse files Browse the repository at this point in the history
…e version data (#29212)
  • Loading branch information
thdk authored Dec 5, 2024
1 parent 2fa3ce2 commit b848bb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nx/src/command-line/release/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b848bb3

Please sign in to comment.