File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,18 @@ async function main() {
2828 type : 'select' ,
2929 name : 'release' ,
3030 message : 'Select release type' ,
31- choices : versionIncrements . map ( i => `${ i } (${ inc ( i ) } )` ) . concat ( [ 'custom' ] )
31+ choices : versionIncrements . map ( ( i ) => `${ i } (${ inc ( i ) } )` ) . concat ( [ 'custom' ] )
3232 } )
3333
3434 if ( release === 'custom' ) {
35- targetVersion = ( await prompt ( {
36- type : 'input' ,
37- name : 'version' ,
38- message : 'Input custom version' ,
39- initial : currentVersion
40- } ) ) . version
35+ targetVersion = (
36+ await prompt ( {
37+ type : 'input' ,
38+ name : 'version' ,
39+ message : 'Input custom version' ,
40+ initial : currentVersion
41+ } )
42+ ) . version
4143 } else {
4244 targetVersion = release . match ( / \( ( .* ) \) / ) [ 1 ]
4345 }
@@ -81,7 +83,10 @@ async function main() {
8183
8284 // Publish the package.
8385 step ( '\nPublishing the package...' )
84- await run ( 'yarn' , [ 'publish' ] )
86+ await run ( 'yarn' , [ 'publish' ,
87+ '--new-version' , targetVersion ,
88+ '--no-commit-hooks' , '--no-git-tag-version'
89+ ] )
8590
8691 // Push to GitHub.
8792 step ( '\nPushing to GitHub...' )
You can’t perform that action at this time.
0 commit comments