Repository navigation
Description
Description
Opt-in floating major/minor tags moved by the scaffolded promote-release.yml, declared in the .vig-os manifest:
# .vig-os
DEVKIT_FLOATING_TAGS=major,minorDefault empty ⇒ no floating tags (today's behavior). When set, promotion of a final release force-moves <prefix>X (major) and/or <prefix>X.Y (minor) to the promoted release commit — e.g. promoting v0.3.0 moves v0 and v0.3.
Problem Statement
GitHub Action consumers pin floating refs: uses: vig-os/commit-action@v0. That resolution is pure git-tag lookup — the tag named v0 must exist and must track the latest accepted release.
- The devkit image has an analog already:
promote-release.ymlmoves the GHCR:latesttag at promote time. Action repos got the GHCR logic stripped (correctly), but received no replacement for their floating pointer. - Today
vig-os/commit-actionmovesv0/v0.2by hand after each release — unautomated, easy to forget, and unprotected by the release gates.
Promote is the only correct moment: it is the post-acceptance gate (Release published, PR merged to main), exactly like :latest. RC candidates must never move floating tags.
Proposed Solution
- New
.vig-oskeyDEVKIT_FLOATING_TAGS(comma-separated subset ofmajor,minor; empty/absent ⇒ off). Read viaresolve-toolchain, passed intopromote-release.yml. - New step in the promote job, after Release publication and PR merge succeed: derive
X/X.Yfrom the promoted version, compose withDEVKIT_TAG_PREFIX(depends on [FEATURE] Per-repo release tag prefix (DEVKIT_TAG_PREFIX) for Action-publishing consumers #1044), and force-push the floating tags at the release tag's commit. Idempotent (skip when already pointing there); final releases only. - Push with the RELEASE_APP token so a tag ruleset can deny tag update/delete to everyone else — floating-tag moves become an app-exclusive, audited operation.
- Document in
docs/DOWNSTREAM_RELEASE.md: floating tags are mutable by design and therefore never get a GitHub Release object (immutable releases would lock them).
Alternatives Considered
- Local
promote-release.ymlpatch per consumer: works today but duplicates the logic across both Action repos and drifts on every scaffold upgrade. - GitHub Release "latest" alias only: does not affect
uses:ref resolution — consumers need the git tag. - Bare
Xfloating tags for non-prefixed repos: allowed for free by composing with the prefix, but no known consumer wants it; the feature simply stays generic.
Additional Context
Companion to #1044 (floating tag names compose with the prefix). Found while auditing vig-os/commit-action's devkit-1.1.0 release stack; its v0/v0.2 are currently hand-moved.
Impact
- Off by default — no change for devkit or existing consumers.
- Gives Action-publishing consumers the standard
@vNpinning contract with promote-gated, app-only tag moves. - SemVer: minor.
Activity
feat(ci): per-repo release tag prefix and promote-time floating tags (#…
c-vigo commentedon Jul 14, 2026
Implemented in #1051 (merged to dev): DEVKIT_FLOATING_TAGS (major,minor) moves prefix-composed floating tags in a new promote job gated on Release publication + main-merge success; idempotent, final-only, RELEASE_APP-token pushes. Documented in docs/DOWNSTREAM_RELEASE.md.
feat(ci): add prepare-release extension hook with devkit dogfooding (#…
chore: release 1.2.0 (#253)
chore: release 1.2.0 (#1068)
build(devkit): adopt devkit 1.2.0 and declare the v tag scheme (#76)
fix(workflows): publish the scaffold release tag as a lightweight ref (…