Skip to content

Commit 1b573c6

Browse files
amilajackclaude
andcommitted
fix: correct event name check in release workflow
The release step was checking for 'push' event, but the workflow triggers on 'workflow_run'. Changed to check for 'workflow_run' so automatic releases work when Test workflow completes on main. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4c3f730 commit 1b573c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: npx semantic-release --dry-run
6262

6363
- name: Release # Uses release.config.js
64-
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dryRun == 'false')}}
64+
if: ${{ github.event_name == 'workflow_run' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dryRun == 'false')}}
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6767
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)