fix(cd): allow GoReleaser to auto-detect monorepo tags and skip semver validation #17
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.
Problem
The GoReleaser step in the CD workflow was failing with the error:
Root Cause Analysis
The workflow was overriding
GORELEASER_CURRENT_TAGwith just the semantic version (v0.2.0), but the actual git tag created by release-please uses the full monorepo format (protoc-gen-elixir-grpc@v0.2.0).When tested locally:
GORELEASER_CURRENT_TAG=v0.2.0→git tag v0.2.0 was not made against commit...❌GORELEASER_CURRENT_TAG=protoc-gen-elixir-grpc@v0.2.0→failed to parse tag as semver: invalid semantic version❌GORELEASER_CURRENT_TAGentirely → GoReleaser auto-detects the full tag correctly, but semver validation failsSolution
GORELEASER_CURRENT_TAG- Let GoReleaser auto-detect the tag from git (it correctly findsprotoc-gen-elixir-grpc@v0.2.0)--skip=validateflag - Bypass semver validation since our tags usecomponent@versionformatLocal Validation
Dry-run test confirmed the fix works:
BUILD_COMPONENT="protoc-gen-elixir-grpc" goreleaser release --clean --skip=publish,validateResults:
protoc-gen-elixir-grpc@v0.2.0protoc-gen-elixir-grpc@v0.2.0Impact
This fix enables the release workflow to properly handle monorepo tags for both:
protoc-gen-elixir-grpcprotoc-gen-connect-go-servicestructFixes: https://github.com/TrogonStack/protoc-gen/actions/runs/18118813863/job/51559613751