mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
feat(cli): generate changelog before release
This commit is contained in:
@@ -51,8 +51,7 @@ export function changelog() {
|
||||
|
||||
conventionalChangelog(
|
||||
{
|
||||
preset: 'angular',
|
||||
releaseCount: 2
|
||||
preset: 'angular'
|
||||
},
|
||||
null,
|
||||
null,
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// @ts-ignore
|
||||
import releaseIt from 'release-it';
|
||||
import { build } from '../commands/build';
|
||||
import { changelog } from '../commands/changelog';
|
||||
|
||||
class VantCliReleasePlugin extends releaseIt.Plugin {
|
||||
async beforeRelease() {
|
||||
@@ -8,6 +9,7 @@ class VantCliReleasePlugin extends releaseIt.Plugin {
|
||||
console.log('');
|
||||
|
||||
await build();
|
||||
changelog();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user