Skip to content

fix(release): tag a version npm rejects as already published - #1378

Merged
Makisuo merged 1 commit into
mainfrom
fix/release-already-published
Oct 10, 2026
Merged

Makisuo merged 1 commit into
mainfrom
fix/release-already-published

Conversation

@Makisuo

@Makisuo Makisuo commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

The first changesets Release run failed: @maple-dev/alchemy@0.2.0 was published by hand minutes earlier (first-publish bootstrap), npm view served a stale miss for the brand-new package, and npm publish then failed with E403 "cannot publish over the previously published versions".

This treats that specific rejection as already published: the script logs it and tags/releases the version instead of failing. Any other publish error still fails the run.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

npm view can return a stale miss for a package created minutes earlier, so a
version published out of band reached npm publish and failed the release with
E403. Treat that rejection as already published and only tag it.
@coderabbitai

coderabbitai Bot commented Oct 10, 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 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 194337fc-6b8a-437d-9a1c-d6dd8479dee5

📥 Commits

Reviewing files that changed from the base of the PR and between 4d87391 and 8bff5ff.


📒 Files selected for processing (1)
  • scripts/publish-packages.ts

  • Autofix · 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.

@maple-review-bot

maple-review-bot Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Maple review

Nothing to review

The only changed file is scripts/publish-packages.ts, a release script the review scope excludes, so there is nothing to review.

8bff5ff · Updated on every push. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.

@Makisuo
Makisuo merged commit d3d54b2 into main Oct 10, 2026
14 checks passed
@Makisuo
Makisuo deleted the fix/release-already-published branch October 10, 2026 22:10
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