fix(release): skip release notes sync when no changelog entry exists

Draft releases don't have changelog entries, so the script should log
and continue rather than throwing.
This commit is contained in:
Mohamed Boudra
2026-03-27 21:09:38 +07:00
parent 6342057a6f
commit af35cccb5f

View File

@@ -150,7 +150,8 @@ function main() {
const targetEntry = entries.find((entry) => entry.tag === targetTag);
if (!targetEntry) {
throw new Error(`No matching changelog section found for ${targetTag}.`);
console.log(`No matching changelog section found for ${targetTag}. Skipping.`);
return;
}
const tempDir = mkdtempSync(path.join(tmpdir(), "paseo-release-notes-"));