Skip to content

Commit

Permalink
build: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
cuebit committed May 5, 2020
1 parent 12c141e commit 56e1f1a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ async function main() {
type: 'select',
name: 'release',
message: 'Select release type',
choices: versionIncrements.map(i => `${i} (${inc(i)})`).concat(['custom'])
choices: versionIncrements.map((i) => `${i} (${inc(i)})`).concat(['custom'])
})

if (release === 'custom') {
targetVersion = (await prompt({
type: 'input',
name: 'version',
message: 'Input custom version',
initial: currentVersion
})).version
targetVersion = (
await prompt({
type: 'input',
name: 'version',
message: 'Input custom version',
initial: currentVersion
})
).version
} else {
targetVersion = release.match(/\((.*)\)/)[1]
}
Expand Down Expand Up @@ -81,7 +83,10 @@ async function main() {

// Publish the package.
step('\nPublishing the package...')
await run('yarn', ['publish'])
await run('yarn', ['publish',
'--new-version', targetVersion,
'--no-commit-hooks', '--no-git-tag-version'
])

// Push to GitHub.
step('\nPushing to GitHub...')
Expand Down

0 comments on commit 56e1f1a

Please sign in to comment.