-
-
Notifications
You must be signed in to change notification settings - Fork 298
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 --tag option #46
Add --tag option #46
Conversation
|
||
Examples | ||
$ np | ||
$ np patch | ||
$ np 1.0.2 | ||
$ np 1.0.2-beta.3 --tag beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use --tag=beta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ (I haven't had a chance to use meow
yet, been meaning to switch from yargs)
Hoping you merge this - I believe it npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish |
Instead of using an extra flag, can't we just extract the tag out of the version with semver? const semver = require('semver');
semver.prerelease('1.0.2-beta.3');
//=> ['beta', 3] |
@SamVerschueren That would be pretty sweet and make a good default. Still nice to be able to override it manually for other use-cases ( |
Thanks @developit :) |
@SamVerschueren Cool idea, but I rarely use prereleases myself and that behavior would be surprising to many, although better. |
I never used them to be honest, it was just an idea :). |
Publish Add support for
--tag xx
, which publishes under a given dist-tag. Closes #45.