Skip to content

Commit 80d4c14

Browse files
committed
fix: create local semver tag alias for goreleaser in monorepo
1 parent f9e14d6 commit 80d4c14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release-engine.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
# Strip "engine/" prefix so goreleaser sees a clean semver tag
3737
TAG="${GITHUB_REF#refs/tags/engine/}"
3838
echo "GORELEASER_CURRENT_TAG=${TAG}" >> "$GITHUB_ENV"
39+
# Create a local tag alias so goreleaser can validate the tag against
40+
# the current commit. Goreleaser reads tags but never pushes them, so
41+
# this won't pollute the remote. The namespaced tag (engine/vX.Y.Z) is
42+
# what triggered this workflow; goreleaser needs the plain vX.Y.Z form.
43+
git tag "${TAG}"
3944
4045
- name: Run goreleaser
4146
uses: goreleaser/goreleaser-action@v6

0 commit comments

Comments
 (0)