Skip to content

Conversation

@haradakunihiko
Copy link
Owner

Summary

  • Detect prerelease versions (containing hyphen like 0.5.0-2) and use --tag next
  • Use --tag latest for stable versions

Background

npm 11+ requires explicit --tag when publishing prerelease versions.

Related: npm/cli#7553

Test plan

  • Publish a prerelease version and verify it uses next tag
  • Publish a stable version and verify it uses latest tag

🤖 Generated with Claude Code

Detect prerelease versions (containing hyphen) and use --tag next,
otherwise use --tag latest for stable versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@haradakunihiko haradakunihiko merged commit f014ee6 into master Dec 20, 2025
1 check 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