Skip to content

Commit a090919

Browse files
committed
ci(release): pass explicit tag_name to softprops for dispatch runs
The first workflow_dispatch release run published to npm but failed at 'Create GitHub Release' — with GITHUB_REF_NAME=main, softprops had no tag to attach the release to.
1 parent c6f8d96 commit a090919

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ jobs:
128128
- name: Create GitHub Release
129129
uses: softprops/action-gh-release@v3
130130
with:
131+
# Dispatch runs carry the branch ref; GITHUB_REF_NAME isn't the tag
132+
# there, so pass the resolved tag explicitly.
133+
tag_name: ${{ steps.ref.outputs.RELEASE_REF_NAME }}
131134
name: "v${{ steps.version.outputs.VERSION }}"
132135
generate_release_notes: true
133136
prerelease: ${{ steps.version.outputs.PRERELEASE }}

0 commit comments

Comments
 (0)