How to disable the 'Create Git tag' step and tag locally? #3818
-
|
Hi My current config is and the main part of the release-git-command.sh script is My intention is to use semantic-release to
I don't have (?) enabled the semantic-release/git plugin, but some mechanism adds the commit, and tag to the main branch, even if the branch on build-agent is switched to the How can I disable git-related operation made by semantic-release and its plugins totally? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hello @it-praktyk, I want start by saying that the @semantic-release/git plugin has absolute nothing to do with the git tag creation in the release lifecycle. It is only a plugin that lets you perform git operation with the So, the The gitTag is an important value to how we track previous release version So, I don't have a clear path that advises how you can disable the step. |
Beta Was this translation helpful? Give feedback.
-
|
I've written a plugin to just... stop the release process. You might be able to use it to disable the Git tag creation, since it looks like all the functionality you want would be covered by the plugins you already have. |
Beta Was this translation helpful? Give feedback.
-
|
@babblebey, @koterpillar, I struggled with this release because ... I had typo in the After when I found my mistake, the rest was (almost) simple. |
Beta Was this translation helpful? Give feedback.
Hello @it-praktyk,
I want start by saying that the @semantic-release/git plugin has absolute nothing to do with the git tag creation in the release lifecycle. It is only a plugin that lets you perform git operation with the
gitcli within your release process.... i.e.git do-something.So, the
gitTagcreation during the release process with semantic-release is a separate part in the release step (see https://github.com/semantic-release/semantic-release?tab=readme-ov-file#release-steps) and it is NOT an optional step. I think that git tags are a way to tag commit allowing them to be identified with what part of the project release history that they belong to.The gitTag is an important valβ¦