mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 16:06:20 -04:00
feat(git-release): push tags first to help ci tools not miss them
If you are buliding on CircleCI for example, pushing the commits first can lead to a race where CI env will not see the tags since the pull happened before the tags were finished pushing. It should be fully safe (and backwards-compatible) to change the order of pushing to the remote.
This commit is contained in:
parent
c2efbc889d
commit
5639160b8b
|
|
@ -91,8 +91,8 @@ if test $# -gt 0; then
|
|||
git commit -a -m "$msg"
|
||||
# shellcheck disable=SC2086
|
||||
git tag $version -a -m "$msg" \
|
||||
&& git push $remote \
|
||||
&& git push $remote --tags \
|
||||
&& git push $remote \
|
||||
&& hook post-release $hook_args \
|
||||
&& echo "... complete"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue