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:
@@ -150,7 +150,8 @@ function main() {
|
|||||||
const targetEntry = entries.find((entry) => entry.tag === targetTag);
|
const targetEntry = entries.find((entry) => entry.tag === targetTag);
|
||||||
|
|
||||||
if (!targetEntry) {
|
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-"));
|
const tempDir = mkdtempSync(path.join(tmpdir(), "paseo-release-notes-"));
|
||||||
|
|||||||
Reference in New Issue
Block a user