refactor(cli): rewrite release command (#12133)

* refactor(cli): rewrite release command

* fix: duplicated build

* fix: no git check

* feat: rollback version

* chore: release config

* chore: add release config
This commit is contained in:
neverland
2023-07-30 10:43:26 +08:00
committed by GitHub
parent 2513ad1217
commit e6a0694807
24 changed files with 222 additions and 1704 deletions
@@ -1,14 +0,0 @@
import { Plugin } from 'release-it';
import { execSync } from 'child_process';
class VantCliReleasePlugin extends Plugin {
async beforeRelease() {
// log an empty line
console.log('');
execSync('vant-cli build', { stdio: 'inherit' });
execSync('vant-cli changelog', { stdio: 'inherit' });
}
}
export default VantCliReleasePlugin;