Skip to content

Commit 35e3800

Browse files
ThomasK33claude
andauthored
fix: dispatch the Release pipeline on the tag ref (#145)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent c5eca83 commit 35e3800

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release-please.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ jobs:
7070
set -euo pipefail
7171
read -ra tags <<< "$RELEASE_TAGS"
7272
for tag in "${tags[@]}"; do
73-
gh workflow run release.yml --field "tag=$tag"
73+
# Dispatch on the tag ref (not the default branch) so the run is
74+
# attributed to the tag like the old `push: tags` flow, and the
75+
# OIDC claims behind npm trusted publishing/provenance reference
76+
# the tag instead of whatever main's head happens to be.
77+
gh workflow run release.yml --ref "$tag" --field "tag=$tag"
7478
done
7579
7680
# Branch pushes made with the workflow token never trigger

0 commit comments

Comments
 (0)