Skip to content

Commit 9da35c9

Browse files
committed
Fix: release workflow uses inputs.tag_name for workflow_dispatch
The release workflow was using github.event.release.tag_name which is only set for release events, not workflow_dispatch. Add fallback to inputs.tag_name so manual workflow_dispatch triggers correctly set the package version. Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent a474105 commit 9da35c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: "Set Package Version"
4141
uses: reedyuk/npm-version@1.1.1
4242
with:
43-
version: ${{ github.event.release.tag_name }}
43+
version: ${{ github.event.release.tag_name || inputs.tag_name }}
4444

4545
- name: Install, Build, and Publish Package
4646
run: |

0 commit comments

Comments
 (0)