From fedc0bc3235a0cbbda41b6538455b8860c128858 Mon Sep 17 00:00:00 2001 From: Andrea Bueide Date: Mon, 2 Mar 2026 20:59:06 -0600 Subject: [PATCH] fix(ci): override GITHUB_REF for beta releases semantic-release uses env-ci which reads GITHUB_REF to determine the current branch. Since workflow_dispatch runs from master, GITHUB_REF is refs/heads/master even after git checkout -B beta. This caused beta releases to publish as stable versions instead of prereleases. Override GITHUB_REF=refs/heads/beta in the beta release step so semantic-release correctly detects the beta branch and publishes prerelease versions with the @beta dist-tag. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 930f33808..f18b3033a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,6 +69,7 @@ jobs: run: devbox run --config=shells/devbox-fast.json release env: GH_TOKEN: ${{ github.token }} + GITHUB_REF: refs/heads/beta - name: Release (production) if: inputs.type == 'production'