Skip to content

Releases left as drafts and version tags deleted by tag-health; release notes ignore changelog files #362

Closed

Description

@Shinrai

Summary

Published releases in v4 consumer repos are flipped back to drafts, and some version tags are deleted, while every workflow involved reports success. Case study: CLDMV/configs. Its v1.2.0 release is a draft (and there are two v1.2.0 releases), the v1.2.2 release is a draft, and there is no v1.2.2 tag, although v1.2.2 shipped from 26f9723 and was published to npm.

Root cause

  1. Publish creates the version tag as a lightweight, unsigned tag. The publish.yml template passes use_gpg: ${{ github.event.inputs.use_gpg == 'true' }}, which is false on every push-triggered release. reusable-publishing.yml then calls create-release with gpg_enabled: false, even though all four CLDMV_BOT_* GPG secrets are mapped. Evidence: in the v1.2.2 publish run (run 37093996296, job "📋 Create GitHub Release"), the "Create tag if needed" step shows gpg_enabled: false, and "Verify tag signature" reads refs/tags/v1.2.2 with object.type: commit.
  2. Tag health "fixes" that tag by deleting it and pushing it again, and swallows the failure. The standalone update-major-version-tags.yml runs on release: published → reusable-tag-health.yml → fix-unsigned-tags. That step runs git push origin :refs/tags/vX followed by git push origin vX, which goes against the repo's own "never delete+recreate a tag" rule. Deleting the tag of a published release makes GitHub turn the release back into a draft. When the second push is rejected, the action logs ❌ Failed to fix tag, returns null, prints ✅ Fixed 0 / "No issues found", and exits 0. The re-publish (reassertPublished) only runs on the success path.
    • v1.2.0, job 110972616376: - [deleted] v1.2.0, then ! [remote rejected] v1.2.0 -> v1.2.0 (cannot lock ref 'refs/tags/v1.2.0': reference already exists). Release left as a draft.
    • v1.2.2, job 111120335511: - [deleted] v1.2.2, then ! [rejected] v1.2.2 -> v1.2.2 (already exists). Release left as a draft.
    • v1.2.3's tag-health, job 111380070679: it deleted v1.2.2 again, and this time the push was rejected with the known App push bug for a tag that isn't at the branch tip (refusing to allow a GitHub App to create or update workflow ... without workflows permission). The tag has been gone ever since. The job is still green.
  3. fix-orphaned-releases reads only the first page of releases, and it never re-publishes a release that CI turned into a draft.

Related release-notes problems

  • The release body is the release squash-commit message, so releases made before a per-version changelog file existed carry the auto-generated "What's Changed" dump, even after docs/changelog/v<major>/v<version>.md was backfilled. There is no way to re-sync a release body from its changelog file.
  • Every body starts with a copy of the commit subject (release: v1.2.3 - …), which duplicates the release title.
  • Plain @word text in prose (for example @Author or @Date from fix-headers docs) becomes a user mention, and GitHub adds that user to the release's Contributors avatars. The current zero-width-space neutralizer only covers a fixed list of JSDoc tag names, and it leaves an invisible character in copied text.

Fix plan

  • Create release tags signed from the start: GPG signing turns on automatically whenever the GPG secret is present.
  • fix-unsigned-tags: replace the tag atomically (force-push, never delete). If the push fails, the original tag is left alone. Fail loudly if any processed release ended up as a draft or lost its tag.
  • create-release: after creating the release, verify that it is published and its tag exists, and fail the job otherwise.
  • Use docs/changelog[s]/v<major>/v<version>.md as the release body when it exists, keeping the Contributors and coverage blocks, and drop the duplicated subject line.
  • Add a workflow_dispatch "sync release notes" reusable workflow that re-syncs release bodies from changelog files. It creates missing tags or releases, and publishes CI-drafted releases, only when explicitly asked.
  • Neutralize accidental @word mentions outside code (wrap them in backticks), but keep the Contributors handles.

Activity

  1. added
    type: bug
    priority: high
    status: confirmed
    on Oct 4, 2026
  2. Shinrai commented on Oct 4, 2026

    @Shinrai
    ContributorAuthor

    Fix in #363, targeting next:

    • 6015bd7: release tags are now created signed, fix-unsigned-tags replaces a tag atomically and fails loudly, create-release checks that the release is published and its tag exists, release notes now come from the changelog file, accidental @word mentions are neutralized, fix-orphaned-releases now reads every page of releases, and there is a new workflow-sync-release-notes.yml with its consumer template.
    • 95dd420: fix-non-bot-tags and fix-orphaned-tags had the same delete-then-push pattern. Both now update the tag in place.

    Repairing CLDMV/configs has to wait until this ships to @v4. Its v1.2.2 tag sits on a commit that isn't the branch tip, so any tag recreated there before the fix lands would go through the @v4 code that deletes the tag before re-pushing it.

  3. added
    status: implemented
    and removed
    status: confirmed
    on Oct 4, 2026
  4. cldmv-bot commented on Oct 4, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #363, merged into next. This issue closes automatically when that work ships to the default branch.

  5. cldmv-bot commented on Oct 4, 2026

    @cldmv-bot
    Contributor

    Closed in v4.30.7 — resolved by #363.

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

    priority: highstatus: implementedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions