Skip to content

ci: Bind GitHub release draft to tag via gh release create - #53

Merged
zipper merged 1 commit into
masterfrom
ci/release-draft-tag-binding
May 14, 2026
Merged

zipper merged 1 commit into
masterfrom
ci/release-draft-tag-binding

Conversation

@zipper

@zipper zipper commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 🛠️ Replace softprops/action-gh-release@v2 with gh release create "${{ github.ref_name }}" --draft --target "${{ github.sha }}" in publish.yml

Why

Previously the draft release got created with an untagged-<hash> placeholder slug instead of being bound to the actual pushed tag (e.g. URL releases/tag/untagged-32cebe2eab... rather than releases/tag/3.3.3). The tag had to be manually re-selected in the GitHub UI before publishing.

Switching to gh release create with explicit tag_name (via github.ref_name) binds the draft to the real tag from the start. This matches the pattern in prettier-plugin-latte-tailwind and resolves a recurring problem across our release workflows.

Test plan

  • Merge & verify CI passes
  • Next release: confirm draft URL appears as releases/tag/<version> directly (no untagged- slug)
  • Confirm dist/PdNaja.esm.js and dist/PdNaja.esm.js.map are still attached to the draft

Previously `softprops/action-gh-release@v2` was used without an explicit
`tag_name`, which made GitHub create the draft release with an
`untagged-<hash>` placeholder slug. The tag had to be manually re-selected
in the GitHub UI before publishing.

Switch to `gh release create "${{ github.ref_name }}"` so the draft is
bound to the actual pushed tag from the start, matching the pattern used
in `prettier-plugin-latte-tailwind`.
@zipper
zipper merged commit 1504db7 into master May 14, 2026
1 check passed
@zipper
zipper deleted the ci/release-draft-tag-binding branch May 14, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant