File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ inquirer
22
22
name : 'releaseTag' ,
23
23
type : 'input' ,
24
24
message : 'Input release tag' ,
25
+ default : 'next' ,
25
26
when : ( { bump} ) => bump === 'custom'
26
27
}
27
28
] )
@@ -37,8 +38,8 @@ inquirer
37
38
type : 'confirm' ,
38
39
message : 'Are you sure you want to release v' + v . version + ( res . releaseTag ? ' with tag: ' + res . releaseTag : '' ) ,
39
40
default : false
40
- } ] ) . then ( ( res ) => {
41
- if ( res . confirmed ) {
41
+ } ] ) . then ( ( { confirmed } ) => {
42
+ if ( confirmed ) {
42
43
return resolve ( {
43
44
version : v . version ,
44
45
releaseTag : res . releaseTag
@@ -50,6 +51,7 @@ inquirer
50
51
} )
51
52
. then ( ( { version, releaseTag} ) => {
52
53
console . log ( blue ( `Releasing v${ version } ...` ) )
54
+ console . log ( blue ( `With tag: ${ releaseTag } ` ) )
53
55
console . log ( blue ( '-' . repeat ( 80 ) ) )
54
56
55
57
const buildMessage = `build: ${ version } `
@@ -60,7 +62,7 @@ inquirer
60
62
echo "Starting build..."
61
63
VERSION=${ version } npm run build
62
64
echo "Build Successful. Updating packages"
63
- cd packages/nativescript-vue-template-compiler && npm version ${ version } && npm publish
65
+ cd packages/nativescript-vue-template-compiler && npm version ${ version } && npm publish${ releaseTag ? ' --tag ' + releaseTag : '' }
64
66
git add -A
65
67
git add -f dist/index.js dist/index.js.map packages/nativescript-vue-template-compiler/index.js
66
68
git commit --no-verify -m "${ buildMessage } "
You can’t perform that action at this time.
0 commit comments