Skip to content

ci(release): enforce atomic package versions#179

Merged
blove merged 1 commit into
mainfrom
codex/release-version-preflight
May 2, 2026
Merged

ci(release): enforce atomic package versions#179
blove merged 1 commit into
mainfrom
codex/release-version-preflight

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 2, 2026

Summary

Adds a release preflight that prevents publishing the fixed publishable group unless every publishable @ngaf/* package has one uniform version.

The guard also verifies tag-triggered publishes use a vX.Y.Z tag that matches the package version, while workflow-dispatch dry runs skip tag comparison because they run on branch refs.

Notes

This intentionally does not normalize the currently skewed package versions. Until the planned manual normalization lands on main, the preflight will fail release attempts and print the current package/version mismatch.

Validation

  • npx vitest run scripts/verify-release-versions.spec.mjs
  • node --check scripts/verify-release-versions.mjs && node --check scripts/verify-release-versions.spec.mjs
  • npx prettier --check .github/workflows/publish.yml scripts/verify-release-versions.mjs scripts/verify-release-versions.spec.mjs
  • node scripts/verify-release-versions.mjs --tag v0.0.12 exits 1 with the expected current version-skew report

@vercel
Copy link
Copy Markdown

vercel Bot commented May 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Building Building Preview, Comment May 2, 2026 4:07pm

Request Review

@blove blove merged commit a1a103c into main May 2, 2026
11 of 12 checks passed
@blove blove deleted the codex/release-version-preflight branch May 7, 2026 16:30
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.

1 participant