Skip to content

fix(ci): override GITHUB_REF for beta releases#1143

Merged
abueide merged 1 commit intomasterfrom
fix/beta-branch-detection
Mar 3, 2026
Merged

fix(ci): override GITHUB_REF for beta releases#1143
abueide merged 1 commit intomasterfrom
fix/beta-branch-detection

Conversation

@abueide
Copy link
Contributor

@abueide abueide commented Mar 3, 2026

Summary

  • Override GITHUB_REF=refs/heads/beta in the beta release step
  • semantic-release uses env-ci which reads GITHUB_REF to determine the branch. Since workflow_dispatch runs from master, GITHUB_REF=refs/heads/master even after git checkout -B beta, causing beta releases to publish as stable versions

Also fixed (outside this PR)

  • Created missing git tag @segment/analytics-react-native-plugin-appsflyer-v0.8.0 (manual npm publish had no tag)
  • The latest dist-tag on npm for @segment/analytics-react-native-plugin-appsflyer still points to 0.6.1 instead of 0.8.0 — needs manual fix: npm dist-tag add @segment/analytics-react-native-plugin-appsflyer@0.8.0 latest

Test plan

  • Merge and run beta release
  • Verify packages publish with -beta.X suffix and @beta dist-tag (not @latest)

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@abueide abueide merged commit 0f87dc7 into master Mar 3, 2026
5 checks passed
@abueide abueide deleted the fix/beta-branch-detection branch March 3, 2026 03:15
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.

1 participant