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

Recommend using --tag argument for prerelease in readme instructions #183

Closed
tmcw opened this issue Jun 1, 2017 · 3 comments
Closed

Recommend using --tag argument for prerelease in readme instructions #183

tmcw opened this issue Jun 1, 2017 · 3 comments

Comments

@tmcw
Copy link
Contributor

tmcw commented Jun 1, 2017

Nothing this post from Mike Bostock, as well as the current behavior of npm, would it be preferable for standard-version to say

ℹ Run `git push --follow-tags origin master; npm publish --tag alpha` to publish

Instead of always

ℹ Run `git push --follow-tags origin master; npm publish` to publish

Which causes prerelease releases like 3.1.0-alpha.0 to be installed instead of stable releases?

@stevemao
Copy link
Member

stevemao commented Jun 3, 2017

We have --prerelease option. Maybe --tag should be the same value as it?

@bcoe
Copy link
Member

bcoe commented Jun 3, 2017

@stevemao @tmcw I agree, if you use --prerelease, let's also suggest publishing with a --tag.

@tmcw
Copy link
Contributor Author

tmcw commented Jun 4, 2017

👍 cool, I think I can knock that out later tonight!

stevemao pushed a commit that referenced this issue Aug 8, 2017
The `--tag` argument to npm publish allows you to publish a prerelease without the prerelease assuming the 'latest' tag and causing users to download the prerelease by default. Instead, we recommend `--tag prerelease` by default when `--prerelease` is set in the `standard-version` call, so to install a prerelease version of the module, users will install `module@foo` or specify the exact version of the prerelease version.

Fixes #183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants