Skip to content

Commit

Permalink
Read changelog file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Dec 4, 2024
1 parent f99c7d9 commit 6a2793a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tag-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (fileExists(jsrJsonFile)) {

// 3) Swap out "## HEAD" in CHANGELOG.md with the new release version + date
let changelogFile = getPackageFile(packageName, 'CHANGELOG.md');
let changelog = readFile(packageName);
let changelog = readFile(changelogFile);
let match = /^## HEAD\n/m.exec(changelog);
if (match) {
let [today] = new Date().toISOString().split('T');
Expand Down

0 comments on commit 6a2793a

Please sign in to comment.