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() {
28
28
type : 'select' ,
29
29
name : 'release' ,
30
30
message : 'Select release type' ,
31
- choices : versionIncrements . map ( i => `${ i } (${ inc ( i ) } )` ) . concat ( [ 'custom' ] )
31
+ choices : versionIncrements . map ( ( i ) => `${ i } (${ inc ( i ) } )` ) . concat ( [ 'custom' ] )
32
32
} )
33
33
34
34
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
41
43
} else {
42
44
targetVersion = release . match ( / \( ( .* ) \) / ) [ 1 ]
43
45
}
@@ -81,7 +83,10 @@ async function main() {
81
83
82
84
// Publish the package.
83
85
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
+ ] )
85
90
86
91
// Push to GitHub.
87
92
step ( '\nPushing to GitHub...' )
You can’t perform that action at this time.
0 commit comments