-
Notifications
You must be signed in to change notification settings - Fork 4
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
Does npm version really need tag ? #21
Comments
Thanks for raising this issue! The Please feel free to create a PR to disable the tag creation.
|
So we can only abandon this option and use delayed execution |
* feat: no git tag version Fixes: #21 * fix: 🐛 --no-git-tag-version does not commit see npm/cli#3710 * 0.7.4
Merged. Please let me know if it works as expected or not. Thank you very much for your improvement! |
Yes, it works. binsee@localhost > ~/CodeWork/sidecar > test3 > git push --dry-run
> [email protected] lint
> npm-run-all lint:es lint:ts
> [email protected] lint:es
> eslint --ignore-pattern fixtures/ "src/**/*.ts" "tests/**/*.ts"
> [email protected] lint:ts
> tsc --isolatedModules --noEmit
v1.0.30
Deleted tag 'v1.0.30' (was e1626d8)
To github.com:binsee/sidecar.git
6e813d3..335daca test3 -> test3
____ _ _ ____ _
/ ___(_) |_ | _ \ _ _ ___| |__
| | _| | __| | |_) | | | / __| '_ \
| |_| | | |_ | __/| |_| \__ \ | | |
\____|_|\__| |_| \__,_|___/_| |_|
____ _ _
/ ___| _ _ ___ ___ ___ ___ __| | |
\___ \| | | |/ __/ __/ _ \/ _ \/ _^ | |
___) | |_| | (_| (_| __/ __/ (_| |_|
|____/ \__,_|\___\___\___|\___|\__,_(_)
### Npm version bumped and pushed by inner push inside hook pre-push ###"
-- vvvvvv outer push will be canceled, don't worry, not bug :) vvvvvv --"
Failed to exec pre-push hook script
error: failed to push some refs to 'github.com:binsee/sidecar.git'
binsee@localhost > ~/CodeWork/sidecar > test3 > git push --dry-run
Everything up-to-date |
Glad to know, cheers! |
We seem to rarely use tags, and
npm version
in the push hook will create new tags by default. And tags only exist in the local record and will not be uploaded to the remote repo. The tags are displayed in the git log, which is annoying.So I think tag should not be created in push hook.
The
--no-git-tag-version
flag can be added tonpm version
to skip creating tags.The text was updated successfully, but these errors were encountered: