Skip to content

Release can tag a version that never reaches npm (publish dispatched on main, not the tag) and does not wait for CI #190

Closed

Description

@TMHSDigital

Why it matters

The release pipeline can tag a version that never reaches npm, and it can publish code that never passed CI.

Evidence

  1. Publish builds main, not the tag. .github/workflows/release.yml:65 runs gh workflow run publish.yml --ref main, and publish.yml reads the version from whatever main is when it runs.
    • If two version-bump PRs merge close together, run 1 tags v0.34.0 and dispatches publish, but by then main is at v0.34.1. Publish ships 0.34.1, and run 2's dispatch skips it as already published.
    • Result: 0.34.0 has a tag and a GitHub Release (and an .mcpb) but no npm package and no MCP Registry entry.
  2. Release does not wait for CI. release.yml triggers on: push: branches: [main] in parallel with ci.yml. publish.yml re-runs only an ubuntu build and test, with no lint and no Windows leg, so a merge that breaks Windows CI still publishes.

Suggested approach

  • Dispatch with --ref "v$v", so publish builds exactly the tagged commit.
  • Trigger release.yml from workflow_run of CI (conclusion == 'success', head_branch == 'main'), or call CI as a reusable workflow (workflow_call) and gate the release job on it.
  • Optionally use a concurrency: release group so releases serialize.

Done when

  • Each tag's npm package and registry entry are built from that tag's commit.
  • A red CI run on main blocks the release.

Activity

  1. added
    bug
    effort: small
    impact: high
    release
    on Oct 25, 2026
  2. TMHSDigital commented on Oct 25, 2026

    @TMHSDigital
    OwnerAuthor

    Scale of the impact: 28 git-tagged versions never reached npm (0.11.0 through 0.27.3, plus 0.1.0, 0.2.0 and 0.8.13). The CHANGELOG and ROADMAP still cite some of them (for example v0.21.0) as when features shipped, so nobody could install those versions. Worth a CHANGELOG note once this is fixed. Related: #219 (release process) and #218 (branch ruleset).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcieffort: smallimpact: highpriority: highrelease

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions