-
Notifications
You must be signed in to change notification settings - Fork 68
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
[feature request] : push tag on publish phase #405
Comments
I have run into similar situations myself. If it helps, I have some suggestions to offer.
From looking into this quite a bit myself, it seems that semantic-release pushing a git tag in I am doing some experimenting myself with automating what happens on a semantic-release failure. I am automating deleting the pushed git tag on failure so a re-run can occur. There are more pieces to this, but this is one important step to allow semantic-release to retry deploying. Hope this helps. |
I can see why pushing tag on prepare can be useful. So I have to delete the tag (and hope that no other systems already pulled it), rerun a full pipeline with tests and all. So I was hoping for a way to configure this behaviour. |
I understand. I run into the same issues. I can see how pushing a tag until publish would be a nice option for some workflows. But because it wouldn't work for all workflows, I wonder if there is another solution to the problem that would work for all types of workflows. My current idea for how to solve this problem (may not be solved by this plugin, however).
|
I also run into similar issues. I have a Kotlin project which uses the How my workflow is configured currently is it builds the project before The issue is this means that if I ever want to include version information from the If I remove the build step part (because Gradle will build on I'm thinking about PR'ing a feature that allows the user to configure when {
"branches": ["main"]
"plugins": [
"gradle-semantic-release-plugin",
[
"@semantic-release/git",
{
"assets": ["build/"],
"lifecycle": "publish"
}
]
]
} In this example, the To do this, I can expose some more lifecycles functions (not all, only the ones after // src/index.js
export function publish(pluginConfig, context) {
if (pluginConfig.lifecycle === "publish") prepare(pluginConfig, context)
} |
I created a discussion which pitches the idea of adding an option to semantic-release to push a git tag after the |
We have issues when a publish step fails : the tag is already pushed and then we cannot retry the release because semantic-release will consider the branch as behind.
Is it possible to push tag only on publish phase ?
The text was updated successfully, but these errors were encountered: