From 56e1f1a493732941efd870fe4636510edec831fe Mon Sep 17 00:00:00 2001 From: Cue <1493221+cuebit@users.noreply.github.com> Date: Tue, 5 May 2020 10:44:22 +0100 Subject: [PATCH] build: update release script --- scripts/release.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 31a1d7f..519de69 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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] } @@ -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...')