Skip to content

chore(publish): route package releases through dispatcher#377

Merged
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-3710_reducing-release-workflow-noise
Jul 15, 2026
Merged

chore(publish): route package releases through dispatcher#377
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-3710_reducing-release-workflow-noise

Conversation

@phobetron

@phobetron Charles Hudson (phobetron) commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a Dispatch Package Publish workflow for release.published events.
  • Route Android, Swift, and known npm release tags to exactly one publish workflow.
  • Make the npm, Android, and Swift publish workflows workflow_dispatch targets that use inputs.tag.
  • Stop npm target resolution from expanding a release event to every tag on the same commit.

Why

GitHub release triggers do not support tag filters. Because release PR #376 put all package tags on the same merge commit, every published release woke all package publish workflows, causing skipped Android/Swift runs for npm releases and canceled/skipped npm runs for native releases.

This keeps release publishing automatic, but moves the fan-out decision into one dispatcher.

[NT-3710]

GitHub release events cannot be tag-filtered, so each published package release was starting all publish workflows and relying on job-level skips.

Add a release dispatcher that routes known release tags to the matching workflow_dispatch target, and make the npm, Android, and Swift publish workflows dispatch-only. Resolve npm publish targets from the dispatched tag so multi-tag release commits do not bleed into unrelated package runs.

[[NT-3710](https://contentful.atlassian.net/browse/NT-3710)]
@phobetron
Charles Hudson (phobetron) merged commit fcda825 into main Jul 15, 2026
37 checks passed
@phobetron
Charles Hudson (phobetron) deleted the NT-3710_reducing-release-workflow-noise branch July 15, 2026 12:27
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