Skip to content

Fix Release to Publish cascade so releases actually publish to npm#55

Merged
mariojgt merged 1 commit into
mainfrom
fix-release-publish-cascade
Jul 14, 2026
Merged

Fix Release to Publish cascade so releases actually publish to npm#55
mariojgt merged 1 commit into
mainfrom
fix-release-publish-cascade

Conversation

@ejntaylor

Copy link
Copy Markdown
Contributor

The Release workflow creates the GitHub release with the built-in GITHUB_TOKEN, and GitHub deliberately does not fire release-triggered workflows for those releases (an anti-recursion safeguard) — which is why v0.3.7 was cut but Publish never ran and npm stayed on 0.3.6. This bridges the two workflows via workflow_dispatch, the one event type exempt from that rule: Release now dispatches Publish with the computed version, and Publish gains a version input that builds and publishes the matching tag (a blank input still does a dry-run). The release-event trigger stays in place for manual, human-created releases, which fire Publish on their own. No new secrets or PATs required.

🤖 Generated with Claude Code

…elease event

The Release workflow creates the GitHub release with the built-in
GITHUB_TOKEN, and GitHub deliberately does not fire release-triggered
workflows for those releases (anti-recursion), so Publish never ran and
nothing reached npm.

Bridge the two via workflow_dispatch, which is exempt from that rule:
Release now dispatches Publish with the computed version, and Publish
gains a `version` input that publishes the matching tag (blank input
still does a dry-run). The release-event trigger stays for manual,
human-created releases.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderbuds

coderbuds Bot commented Jul 14, 2026

Copy link
Copy Markdown

Publish workflow now correctly handles both release and manual dispatch inputs.

🎯 Quality: 95% Elite · 📦 Size: Small

📈 This month: Your 219th PR — above team average · Averaging Excellent

See how your team is trending →

@ejntaylor

Copy link
Copy Markdown
Contributor Author

/review

@mariojgt mariojgt merged commit 2340679 into main Jul 14, 2026
4 checks passed
@mariojgt mariojgt deleted the fix-release-publish-cascade branch July 14, 2026 08:59
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.

2 participants