Repository navigation
fix: trigger publish on release events - #503
Merged
Merged
Conversation
|
🎉 This PR is included in version 1.11.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
bosbaber
added a commit
that referenced
this pull request
Aug 3, 2026
This pull request improves the release automation workflow to ensure Docker images and charts are published reliably, even when semantic-release uses `[skip ci]` on release commits. The changes enhance both the GitHub Actions workflow triggers and the version determination logic to handle `release` events in addition to tag pushes. **Workflow improvements:** * Updated `.github/workflows/build-and-publish.yml` to trigger on `release.published` events, ensuring publishing steps run even if tag push workflows are skipped due to `[skip ci]`. **Version determination logic:** * Modified `determineVersion` in `tooling/github-scripts/determine-version.js` to handle `release` events by extracting the release tag name from the event payload and enabling Docker image publishing for those events. * Updated the script entry point to pass the full GitHub Actions event payload to `determineVersion`. **Testing:** * Added a test to verify that `determineVersion` correctly handles `release` events and uses the release tag name for versioning and publishing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the release automation workflow to ensure Docker images and charts are published reliably, even when semantic-release uses
[skip ci]on release commits. The changes enhance both the GitHub Actions workflow triggers and the version determination logic to handlereleaseevents in addition to tag pushes.Workflow improvements:
.github/workflows/build-and-publish.ymlto trigger onrelease.publishedevents, ensuring publishing steps run even if tag push workflows are skipped due to[skip ci].Version determination logic:
determineVersionintooling/github-scripts/determine-version.jsto handlereleaseevents by extracting the release tag name from the event payload and enabling Docker image publishing for those events.determineVersion.Testing:
determineVersioncorrectly handlesreleaseevents and uses the release tag name for versioning and publishing.