feat(cli): support config npm tag

This commit is contained in:
chenjiahan
2020-08-28 17:24:51 +08:00
parent daff756a03
commit ba63cd18fa
3 changed files with 11 additions and 17 deletions

View File

@@ -4,11 +4,14 @@ import { join } from 'path';
const PLUGIN_PATH = join(__dirname, '../compiler/vant-cli-release-plugin.js');
export async function release() {
export async function release(command: { tag?: string }) {
await releaseIt({
plugins: {
[PLUGIN_PATH]: {},
},
npm: {
tag: command.tag,
},
git: {
tagName: 'v${version}',
commitMessage: 'chore: release ${version}',