fix(cli): incorrect version when release

This commit is contained in:
陈嘉涵
2019-12-17 20:49:18 +08:00
parent b56e1ba217
commit 7db27a1b79
6 changed files with 30 additions and 9 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
/* eslint-disable no-template-curly-in-string */
// @ts-ignore
import releaseIt from 'release-it';
import { build } from './build';
import { join } from 'path';
const PLUGIN_PATH = join(__dirname, '../compiler/vant-cli-release-plugin.js');
export async function release() {
await build();
await releaseIt({
plugins: {
[PLUGIN_PATH]: {}
},
git: {
tagName: 'v${version}',
commitMessage: 'chore: release ${version}'