mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(cli): generate changelog before release
This commit is contained in:
parent
1dc1feae40
commit
f9bef02730
@ -51,8 +51,7 @@ export function changelog() {
|
|||||||
|
|
||||||
conventionalChangelog(
|
conventionalChangelog(
|
||||||
{
|
{
|
||||||
preset: 'angular',
|
preset: 'angular'
|
||||||
releaseCount: 2
|
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user