mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
chore: check changelog script skip prerelease
This commit is contained in:
parent
ad78751f33
commit
fce602b115
@ -31,6 +31,13 @@ const packageJson = require(join(__dirname, '..', 'package.json'));
|
|||||||
|
|
||||||
const { version } = packageJson;
|
const { version } = packageJson;
|
||||||
|
|
||||||
|
if (!/^\d+\.\d+\.\d+$/.test(version)) {
|
||||||
|
console.log('\n');
|
||||||
|
console.log(chalk.blue('[check-version-md]: Prerelease Version. Skipped.'));
|
||||||
|
console.log('\n');
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
const changeLogContent = fs.readFileSync(join(__dirname, '..', 'CHANGELOG.en-US.md')).toString();
|
const changeLogContent = fs.readFileSync(join(__dirname, '..', 'CHANGELOG.en-US.md')).toString();
|
||||||
|
|
||||||
const changeLog = getChangelogByVersion(changeLogContent, version);
|
const changeLog = getChangelogByVersion(changeLogContent, version);
|
||||||
|
Loading…
Reference in New Issue
Block a user