Repository navigation
Closed
Labels
priority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Description
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
- Publish creates the version tag as a lightweight, unsigned tag. The
publish.ymltemplate passesuse_gpg: ${{ github.event.inputs.use_gpg == 'true' }}, which isfalseon every push-triggered release.reusable-publishing.ymlthen callscreate-releasewithgpg_enabled: false, even though all fourCLDMV_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 showsgpg_enabled: false, and "Verify tag signature" readsrefs/tags/v1.2.2withobject.type: commit. - Tag health "fixes" that tag by deleting it and pushing it again, and swallows the failure. The standalone
update-major-version-tags.ymlruns onrelease: published→reusable-tag-health.yml→fix-unsigned-tags. That step runsgit push origin :refs/tags/vXfollowed bygit 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, returnsnull, 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.2again, 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.
- v1.2.0, job 110972616376:
fix-orphaned-releasesreads 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>.mdwas 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
@wordtext in prose (for example@Authoror@Datefrom 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>.mdas 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
@wordmentions outside code (wrap them in backticks), but keep the Contributors handles.
Metadata
Metadata
Assignees
Labels
priority: highNeeds attention soon — not blocking, but don't let it sitstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
fix(tag-health): re-sign and re-point tags in place instead of delete…
Shinrai commentedon Oct 4, 2026
Fix in #363, targeting
next:6015bd7: release tags are now created signed,fix-unsigned-tagsreplaces a tag atomically and fails loudly,create-releasechecks that the release is published and its tag exists, release notes now come from the changelog file, accidental@wordmentions are neutralized,fix-orphaned-releasesnow reads every page of releases, and there is a newworkflow-sync-release-notes.ymlwith its consumer template.95dd420:fix-non-bot-tagsandfix-orphaned-tagshad 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@v4code that deletes the tag before re-pushing it.fix(sync-release-notes): escape backslashes in summary table cells
fix(tag-health): run tag re-sign/re-point git commands without a shell
chore(tag-health): drop unused gitCommand import in fix-non-bot-tags
fix(release): stop tag-health unpublishing releases; release notes fr…
fix(tag-health): re-sign and re-point tags in place instead of delete…
fix(sync-release-notes): escape backslashes in summary table cells
fix(tag-health): run tag re-sign/re-point git commands without a shell
chore(tag-health): drop unused gitCommand import in fix-non-bot-tags
chore(release-notes): run release-notes tests in npm test; lint and f…
cldmv-bot commentedon Oct 4, 2026
Marked
status: implemented— resolved by #363, merged intonext. This issue closes automatically when that work ships to the default branch.cldmv-bot commentedon Oct 4, 2026
Closed in v4.30.7 — resolved by #363.
fix(tags): keep Markdown headings in tag messages (--cleanup=verbatim)