Skip to content

Commit 56e1f1a

Browse files
committed
build: update release script
1 parent 12c141e commit 56e1f1a

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

scripts/release.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff 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...')

0 commit comments

Comments
 (0)