Skip to content

Commit c34dc6e

Browse files
committed
ci: fix beta release process attempt 4
1 parent 75d41e0 commit c34dc6e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,13 @@ jobs:
113113
# Beta-specific: Publish beta packages directly
114114
- name: Publish beta packages
115115
if: env.RELEASE_TYPE == 'beta'
116-
# Run check first, then publish using changesets
117-
# Note: In prerelease mode, changesets automatically uses the tag from pre.json
118-
# (set to "beta" when entering prerelease mode), so --tag flag is not needed/allowed
116+
# Run check first, then publish directly with npm to ensure beta tag
117+
# Note: We bypass changeset publish because it publishes first releases to
118+
# 'latest' even in prerelease mode. Using npm publish directly gives us
119+
# full control over the dist tag for beta releases.
119120
run: |
120121
npm run check
121-
npx changeset publish
122+
npm publish --tag beta --access public --provenance
122123
env:
123124
NPM_CONFIG_PROVENANCE: true
124125

0 commit comments

Comments
 (0)