Skip to content

Commit

Permalink
Update create_release script to always use h2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 27, 2024
1 parent c78ae47 commit bedb276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Unreleased

# v0.27.0 (2024-11-27)
## v0.27.0 (2024-11-27)

### Breaking Changes

Expand Down
7 changes: 3 additions & 4 deletions scripts/create_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ async function main() {

console.log("Updating changelog...");
let fullChangelog = await readFile(CHANGELOG_MD, "utf-8");
const heading = patch === "0" ? "#" : "##";
let start = fullChangelog.indexOf(`${heading} ${currentVersion}`);
let start = fullChangelog.indexOf(`## ${currentVersion}`);

// If this version isn't in the changelog yet, take everything under ## Unreleased and include that
// as this version.
Expand All @@ -104,9 +103,9 @@ async function main() {
].join("-");
fullChangelog =
"## Unreleased\n\n" +
`${heading} ${currentVersion} (${dateStr})` +
`## ${currentVersion} (${dateStr})` +
fullChangelog.substring(start);
start = fullChangelog.indexOf(`${heading} ${currentVersion}`);
start = fullChangelog.indexOf(`## ${currentVersion}`);

await writeFile(CHANGELOG_MD, fullChangelog);
await exec(`git add "${CHANGELOG_MD}"`);
Expand Down

0 comments on commit bedb276

Please sign in to comment.