Repository navigation
fix(release): point latest dist-tag at the newest published version - #28
Conversation
Replace the publisher's 'protect latest' behavior so each publish repoints the latest dist-tag at the just-published version and waits for it to converge. This keeps the npm package pages and tagless installs reflecting the current 0.1.0-alpha.N build instead of a stale pinned alpha.
|
Warning Review limit reached
Next review available in: 50 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. 📝 WalkthroughWalkthroughThe alpha publisher now assigns ChangesAlpha latest tag flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant AlphaPublisher
participant PackageRegistry
participant NpmRegistry
AlphaPublisher->>PackageRegistry: Publish missing alpha package version
AlphaPublisher->>PackageRegistry: Wait for alpha tag convergence
AlphaPublisher->>PackageRegistry: Set latest tag
PackageRegistry->>NpmRegistry: Update latest tag
AlphaPublisher->>PackageRegistry: Wait for latest tag convergence
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@RELEASING.md`:
- Line 193: Update the manual release fallback instructions in RELEASING.md to
include the complete alpha-then-latest sequence: publish with the alpha tag,
verify alpha convergence, explicitly repoint latest using npm dist-tag add for
the published package version, and wait until latest converges. Match the
existing publisher workflow’s verification behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9a218445-ff10-4828-863c-a4fd167b973a
📒 Files selected for processing (6)
RELEASING.mddocs/superpowers/plans/2026-08-01-medium-import-alpha-release.mdscripts/publish-alpha-packages.d.mtsscripts/publish-alpha-packages.mjstests/release/package-manifests.test.tstests/release/publish-packages.test.ts
What
Changes the Release publisher so each publication repoints the
latestdist-tag at the just-published0.1.0-alpha.Nversion (and waits for it to converge), instead of the old behavior that failed iflatestmoved (keeping it pinned at a stale0.1.0-alpha.4).Why
The npm package pages and tagless installs were misleading: they showed
latest = 0.1.0-alpha.4while the newest published build was0.1.0-alpha.9. Nowlatestalways reflects the current build.Changes
scripts/publish-alpha-packages.mjs: publish toalpha, wait for convergence, thennpm dist-tag add <pkg>@<v> latestand wait for that to converge. Removed theassertPublishedAtAlpha'latestmust not move' guard.scripts/publish-alpha-packages.d.mts: addedsetDistTagtoPackageRegistry.tests/release/publish-packages.test.ts: updated to assertlatestis repointed and converges.tests/release/package-manifests.test.ts,RELEASING.md, plan doc: wording updated.Verification:
bun run typecheck,bun run test(295 passed),bun run release:checkall green.Summary by CodeRabbit
Release Process
latesttag to the newest alpha version.alphaandlatesttags point to the expected version.Documentation
latesttag behavior.