From eb8ea8ef83072cbff7b87a4cde9299c2b6d1b530 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sun, 14 Dec 2025 14:15:22 -0700 Subject: [PATCH] fix(release): simplify version bump logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/manual-release.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual-release.yaml b/.github/workflows/manual-release.yaml index b81a63d6..4f9808fa 100644 --- a/.github/workflows/manual-release.yaml +++ b/.github/workflows/manual-release.yaml @@ -53,9 +53,8 @@ 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 ;; - *) npm version ${{ github.event.inputs.version_bump }} --no-git-tag-version ;; + 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 - name: Get new version and previous tag