Skip to content

Commit

Permalink
chore: fix changelog version script
Browse files Browse the repository at this point in the history
  • Loading branch information
bd82 committed Oct 21, 2022
1 parent 5eeb13a commit 7ffce99
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/website/scripts/version-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ const fs = require("fs")
const myRepo = git("")

const newVersion = config.currVersion
const dateTemplateRegExp = /^.+\n\n(## X\.Y\.Z )\(INSERT_DATE_HERE\)/
const dateTemplateRegExp = /(## X\.Y\.Z )\(INSERT_DATE_HERE\)/
if (!dateTemplateRegExp.test(config.changeLogString)) {
console.log(
"CHANGELOG.md must contain '## X.Y.Z (INSERT_DATE_HERE)' as the third line"
)
console.log("CHANGELOG.md must contain '## X.Y.Z (INSERT_DATE_HERE)'")
process.exit(-1)
}

Expand Down

0 comments on commit 7ffce99

Please sign in to comment.