mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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);
|
||||
|
||||
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-"));
|
||||
|
||||
Reference in New Issue
Block a user