Skip to content

ci: publish floating major version tag and stop committing dist#10

Merged
mathieudi merged 1 commit into
mainfrom
ci/publish-floating-major-tag
Jun 2, 2026
Merged

ci: publish floating major version tag and stop committing dist#10
mathieudi merged 1 commit into
mainfrom
ci/publish-floating-major-tag

Conversation

@mathieudi

Copy link
Copy Markdown

Why

Renovate's github-actions manager resolves versions through the github-tags datasource, which reads git tags (refs/tags/*) only — not branches. This repo's release workflow published the moving major alias (vN) as a branch (refs/heads/vN), so Renovate never saw @vN as a trackable version:

  • Within a major it raised no PRs (the alias silently rode the branch).
  • Across a major it couldn't float to a nonexistent refs/tags/vN, so it rewrote consumers to a pinned full version — e.g. reside-eng/workflow-templates#1403 bumped @v1 → @v2.0.0 instead of @v2.

actions/checkout works correctly because it publishes the consumable major (v4) as a real tag.

What changed

  • release.yml: force-move refs/tags/vN instead of pushing refs/heads/vN, at the same (dist-bearing) commit.
  • dist/ removed from git + added to .gitignore: it's built on release and force-added to the tagged commit (git add --force dist). AGENTS.md updated to match.

Behavior notes

  • Consume this action via @vN (e.g. @v2). Once a vN tag exists, Renovate floats it within a major and produces clean @vN → @v(N+1) PRs across majors.
  • Full-version tags (vX.Y.Z) no longer carry dist/ (only the major tag does), so full-version pins won't resolve a runnable bundle — @vN is the supported reference. This matches the reside-eng floating-major convention.

Follow-ups (not in this PR)

  • One-time migration: create refs/tags/vN at each current major-branch tip and delete the stale vN branches (avoids ambiguous branch+tag refs).
  • Revert reside-eng/workflow-templates replace-comment-html-action@v2.0.1 → @v2 (the over-pin from #1403); otherwise Renovate may bump it to a now-dist-less v2.0.x.

🤖 Generated with Claude Code

Renovate's github-actions manager reads git tags, not branches, so the branch-based moving major alias (refs/heads/vN) was invisible to it; a major bump got rewritten to a pinned full version (reside-eng/workflow-templates#1403).

Force-move refs/tags/vN instead of pushing refs/heads/vN, and gitignore the built dist/ (force-added to the tagged commit on release). Consume via @vn; full-version tags no longer carry dist/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mathieudi mathieudi requested a review from hershmire June 2, 2026 15:25
@mathieudi mathieudi merged commit 9bed67f into main Jun 2, 2026
2 checks passed
@mathieudi mathieudi deleted the ci/publish-floating-major-tag branch June 2, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants