Skip to content

Commit

Permalink
chore: fix release script to ensure that beta releases pass changelog…
Browse files Browse the repository at this point in the history
… check
  • Loading branch information
JamesLMilner committed Aug 14, 2024
1 parent 2dad763 commit f5464f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/changelog-valid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const version = `[${packageJson.version}]`;
console.log("Version: ");
console.log(version);

const changes = changelog.split("### ");
const changes = changelog.split("## ");

console.log("Changes: ");
console.log(changes);
console.log("New Change Log: ");
console.log(changelog);

if (!changes[1].startsWith(version)) {
throw new Error("Latest version is not latest change log title");
Expand Down

0 comments on commit f5464f1

Please sign in to comment.