Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for setting the prompt defaults #54

Closed
cdeutsch opened this issue Aug 24, 2016 · 8 comments
Closed

Add options for setting the prompt defaults #54

cdeutsch opened this issue Aug 24, 2016 · 8 comments

Comments

@cdeutsch
Copy link

It'd be great if you could default the prompts.

For instance I'd like "Publish to NPM?" to default to "Yes"

@webpro
Copy link
Collaborator

webpro commented Sep 29, 2016

You can use -n (or --non-interactive) to run without prompts. Also, -p (or --npm.publish) to auto-publish to npm. Would this work for you?

@cdeutsch
Copy link
Author

I should probably try non-interactive for a while, but I do like the interactive prompts.

I was just hoping there could be a setting in .release.json to set which prompts should default to "Y" vs "N".

I may make a PR if work settles down.

This has been a great tool by the way 👍

@webpro
Copy link
Collaborator

webpro commented Sep 29, 2016

You can override the default settings in a local .release.json file.

@cdeutsch
Copy link
Author

Right, but I don't see an option to set this value:
https://github.com/webpro/release-it/blob/master/lib/enquiry.js#L79

@webpro
Copy link
Collaborator

webpro commented Sep 29, 2016

It should be npm.publish, ie. {"npm": {"publish": true}}.

@cdeutsch
Copy link
Author

That will control non-interactive but not change (y/N) to (Y/n)

image

It's not a big deal. Just have to do a bit of extra training of co-workers to answer the last question with a "y"

@StephanBijzitter
Copy link

Why don't you fully automate it, @crdeutsch ?
I also implemented it for several teams, but figured human error would be way too common, so instead I automated everything on our CI.

@webpro
Copy link
Collaborator

webpro commented Feb 16, 2017

Closing due to inactivity. Feel free to re-open.

@webpro webpro closed this as completed Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants