Skip to content

Release workflow tags and releases every main push before CI passes #115

Closed

Description

@TMHSDigital

Summary

release.yml runs on every push to main, independent of CI. It bumps the version, pushes a tag, creates a GitHub Release and dispatches publish.yml; the first test run for that version happens inside publish.yml. Every non-feat commit, including docs:, test: and chore:, produces a patch release.

Where

  • .github/workflows/release.yml:3-5 (trigger), :41 (default bump is patch), :129-148 (tag, push, release)
  • .github/workflows/publish.yml:37 (first npm test for the release)

Impact

  • A commit that breaks the build still gets a tag and a GitHub Release; the npm publish then fails and the release has no package, with no automatic retry.
  • Docs-only commits publish new npm versions with identical code, which means update noise for users and churn in every versioned file.

Steps to reproduce

  1. Push a commit to main that fails npm test.
  2. release.yml creates vX.Y.Z and a GitHub Release; publish.yml fails at its test step.

Suggested fix

  • Run release.yml from workflow_run on successful "MCP Server CI" and "Validate Plugin Structure" runs for main (or add a test job that the release job needs).
  • Do not bump for commits that only touch docs, tests or CI (a path filter or a docs|test|ci|chore rule that results in no release).

Acceptance criteria

  • No tag or release is created for a commit whose CI failed.
  • Docs-only pushes do not publish a new npm version.

Getting started

  • Relevant files: .github/workflows/release.yml, .github/workflows/ci.yml, .github/workflows/publish.yml

Filed by repo-audit/full-audit at a59395f. Severity: medium. Effort: M. audit-key: ci|.github/workflows/release.yml|version-and-release

Activity

  1. added
    help wanted
    severity: medium
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 18, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 679b151 (changelog note in 0225079). release.yml now has a gate job that releases only when shipped files (mcp-server/ outside tests, skills/, rules/, .cursor-plugin/) changed since the last tag, and a test job (npm ci, build, Vitest, structure tests) that the release job needs. Verified live: the pushes of 679b151 and 0225079 (CI/docs only) ran the gate, and the test and release jobs were skipped, so no tag or npm version was created.

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

    cihelp wantedseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions