Skip to content

Commit beed0c1

Browse files
committed
chore: simplify pre-release tag selection
1 parent 055f7d2 commit beed0c1

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.changeset/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,12 @@ Pre-releases (beta/alpha/rc) are handled by two separate GitHub Actions workflow
210210
To publish beta releases:
211211

212212
1. Maintainer triggers "Pre-release" workflow from GitHub Actions
213-
2. On first run: Workflow automatically enters pre-release mode (default: `beta`)
214-
3. Versions become: `1.40.0-beta.0`, `1.40.0-beta.1`, etc.
215-
4. Packages publish to npm with `beta` tag (not `latest`)
216-
5. For subsequent betas, just run the workflow again - it stays in pre-release mode
217-
6. Users install with: `yarn add @stream-io/video-client@beta`
218-
219-
**Optional:** Change the pre-release tag (e.g., `alpha`, `rc`) via the workflow input.
213+
2. Select pre-release tag: `rc` (default), `beta`, or `alpha`
214+
3. On first run: Workflow automatically enters pre-release mode
215+
4. Versions become: `1.40.0-rc.0`, `1.40.0-rc.1`, etc.
216+
5. Packages publish to npm with selected tag (not `latest`)
217+
6. For subsequent releases, just run the workflow again - it stays in pre-release mode
218+
7. Users install with: `yarn add @stream-io/video-client@beta`
220219

221220
### Publishing Stable Release
222221

.github/workflows/prerelease.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: 'Pre-release tag (e.g., beta, alpha, rc)'
8-
required: false
9-
type: string
10-
default: 'beta'
7+
description: 'Pre-release tag'
8+
required: true
9+
type: choice
10+
options:
11+
- rc
12+
- beta
13+
- alpha
14+
default: rc
1115

1216
permissions:
1317
contents: write

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ All PRs that change published packages **must include a changeset**. CI will fai
112112

113113
**Stable releases:** The **Prepare Release** workflow runs automatically on every push to `main` and creates/updates a "Version Packages" PR. It automatically exits pre-release mode if needed. Review and merge the PR to publish.
114114

115-
**Pre-releases:** Run the **Pre-release** workflow manually. First run publishes `beta.0`, subsequent runs publish `beta.1`, `beta.2`, etc. Change the tag input for `alpha` or `rc` releases.
115+
**Pre-releases:** Run the **Pre-release** workflow manually. Select tag: `rc` (default), `beta`, or `alpha`. First run publishes `rc.0`, subsequent runs publish `rc.1`, `rc.2`, etc.
116116

117117
See [.changeset/README.md](./.changeset/README.md) for detailed workflow documentation.
118118

0 commit comments

Comments
 (0)