Skip to content

Commit

Permalink
Indicate pre-release in github prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 13, 2018
1 parent 867f65c commit bc3b137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/prompt.js
Expand Up @@ -62,7 +62,8 @@ const prompts = {
},
release: {
type: 'confirm',
message: context => `Create a release on GitHub (${format(context.github.releaseName)})?`
message: context =>
`Create a ${options.preRelease ? 'pre-' : ''}release on GitHub (${format(context.github.releaseName)})?`
},
publish: {
type: 'confirm',
Expand Down
1 change: 1 addition & 0 deletions lib/tasks.js
Expand Up @@ -116,6 +116,7 @@ module.exports = async options => {

const version = provisionalVersion;
config.setOption('version', version);
config.setOption('preRelease', !!semver.prerelease(version));
config.setOption('npm.tag', getTag());

if (!version) {
Expand Down

0 comments on commit bc3b137

Please sign in to comment.