chore: allow publishing of identical npm package versions#75
Conversation
Added `--allow-same-version` flag to `npm version` command in the GitHub Actions workflow, enabling publishing of packages with the same version number.
WalkthroughThe workflow .github/workflows/npm-publish.yml updates the npm version command to include --allow-same-version alongside --no-git-tag-version, allowing version setting to succeed when unchanged. Version sanitization (stripping leading 'v') and the npm publish step remain as before. Changes
Sequence Diagram(s)sequenceDiagram
participant GH as GitHub Actions
participant NPM as npm CLI
GH->>GH: Extract and sanitize version (remove leading 'v')
GH->>NPM: npm version <version> --no-git-tag-version --allow-same-version
NPM-->>GH: Succeeds even if version unchanged
GH->>NPM: npm publish
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Added
--allow-same-versionflag tonpm versioncommand in the GitHub Actions workflow, enabling publishing of packages with the same version number.Summary by CodeRabbit