fix(release): simplify version bump logic

Modern npm (v11+) correctly handles --preid flag transitions:
- prerelease --preid=beta on alpha.X produces beta.0 (works!)
- prerelease --preid=alpha on alpha.X produces alpha.X+1 (works!)

CodeRabbit warning was based on outdated npm behavior.
Consolidate alpha|beta into single case for cleaner code.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alex Verkhovsky 2025-12-14 14:15:22 -07:00
parent 7fd21102bd
commit eb8ea8ef83
1 changed files with 2 additions and 3 deletions

View File

@ -53,8 +53,7 @@ jobs:
- name: Bump version
run: |
case "${{ github.event.inputs.version_bump }}" in
alpha) npm version prerelease --no-git-tag-version --preid=alpha ;;
beta) npm version prerelease --no-git-tag-version --preid=beta ;;
alpha|beta) npm version prerelease --no-git-tag-version --preid=${{ github.event.inputs.version_bump }} ;;
*) npm version ${{ github.event.inputs.version_bump }} --no-git-tag-version ;;
esac