feat(cli): generate changelog before release

This commit is contained in:
陈嘉涵 2019-12-29 09:09:15 +08:00
parent 1dc1feae40
commit f9bef02730
2 changed files with 3 additions and 2 deletions

View File

@ -51,8 +51,7 @@ export function changelog() {
conventionalChangelog( conventionalChangelog(
{ {
preset: 'angular', preset: 'angular'
releaseCount: 2
}, },
null, null,
null, null,

View File

@ -1,6 +1,7 @@
// @ts-ignore // @ts-ignore
import releaseIt from 'release-it'; import releaseIt from 'release-it';
import { build } from '../commands/build'; import { build } from '../commands/build';
import { changelog } from '../commands/changelog';
class VantCliReleasePlugin extends releaseIt.Plugin { class VantCliReleasePlugin extends releaseIt.Plugin {
async beforeRelease() { async beforeRelease() {
@ -8,6 +9,7 @@ class VantCliReleasePlugin extends releaseIt.Plugin {
console.log(''); console.log('');
await build(); await build();
changelog();
} }
} }