Skip to content

Commit 0c52c71

Browse files
committedJul 18, 2022
build: adjust release script
1 parent 21a2b9c commit 0c52c71

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2022-07-19 v7.0.0
1+
2022-07-18 v7.0.0
22

33
- **Breaking: drop Node 10 support**
44
- Allow temporarily disabling ESLint wit HTML comments

‎tools/release.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ function getVersion() {
5656
}
5757

5858
const [_, date, version, channel = "latest"] = matches
59-
if (date !== new Date().toISOString().slice(0, 10)) {
60-
error("Invalid changelog date")
59+
const expected = new Date().toISOString().slice(0, 10)
60+
if (date !== expected) {
61+
error(`Invalid changelog date (should be ${expected})`)
6162
}
6263

6364
return [version, channel]

0 commit comments

Comments
 (0)
Please sign in to comment.