Skip to content

fix(release): skip packages whose version is already on npm - #4

Merged
DoodleBears merged 1 commit into
mainfrom
claude/release-skip-published
Oct 5, 2026
Merged

DoodleBears merged 1 commit into
mainfrom
claude/release-skip-published

Conversation

@DoodleBears

Copy link
Copy Markdown
Contributor

Before: a release that bumps only pixel-morph (as #3 needs for 0.2.0) would publish it and then fail on pixel-avatar, because 0.1.0 is already on npm.

After: the release script checks the registry first and skips any package whose version is already published; the dry run says so too.

How. Before each publish, release.mjs fetches registry.npmjs.org/<name>/<version>: 200 means skip, 404 means publish. Checked against npm: pixel-morph@0.1.0 → 200, @0.2.0 → 404. pnpm release (dry run) now prints "already on npm, skipped" for both current packages.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GykcoiqQvD2ZC8e5VwyMYp


Generated by Claude Code

A release that bumps only pixel-morph would otherwise fail trying to
republish pixel-avatar at its existing version.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GykcoiqQvD2ZC8e5VwyMYp
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f8068fa6-e527-4350-8fdd-54ff9fb0140d
📥 Commits

Reviewing files that changed from the base of the PR and between 15697d8 and 59fec36.

📒 Files selected for processing (1)
  • scripts/release.mjs
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DoodleBears
DoodleBears merged commit 98f02a0 into main Oct 5, 2026
2 checks passed
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