fix(cli): incorrect version when release
This commit is contained in:
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user