Run the command below to increment the version:
$ yarn version --new-version 1.0.1 -m "<message>"
or
$ npm version <major | minor | patch> -m "<message>"
- Replace
<major | minor | patch>
with:major
for significant changes.minor
for backward-compatible enhancements.patch
for backward-compatible bug fixes.
- Replace
<message>
with a descriptive commit message for the version change.
To push all new tags to the remote repository, use:
$ git push --tags
To push a specific tag to the remote repository, use:
$ git push origin <tag_name>
- Replace
<tag_name>
with the specific tag you want to push.
To delete a single tag locally, use:
$ git tag -d <tag_name>
- Replace
<tag_name>
with the specific tag you want to delete.
To delete a single tag from the remote repository, run:
$ git push --delete origin <tag_name>
- Replace
<tag_name>
with the specific tag you want to delete remotely.
To delete multiple tags locally, you can use:
$ git tag -d <tag_name_1> <tag_name_2> ...
- Replace
<tag_name_1>
,<tag_name_2>
, etc., with the specific tags you want to delete.
To delete multiple remote tags, run:
$ git push --delete origin <tag_name_1> <tag_name_2> ...
- Replace
<tag_name_1>
,<tag_name_2>
, etc., with the specific tags you want to delete from the remote repository.
This structure clearly separates the processes for pushing all tags and individual tags, along with other tag management tasks.