Skip to content

Commit 033a938

Browse files
abueideclaude
andcommitted
refactor: remove chore/* from prerelease channels
Removed chore/* branches from prerelease channels since they're for internal changes not meant for client distribution. Only fix/* and feat/* branches (plus explicit beta) will publish now. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 17856c8 commit 033a938

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

PRERELEASE_SETUP.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
## Overview
44

5-
This repository uses branch-specific prerelease channels for publishing packages from feature branches, fix branches, etc. Each branch category gets its own npm dist-tag:
5+
This repository uses branch-specific prerelease channels for publishing packages from feature branches and fix branches. Each branch category gets its own npm dist-tag:
66

77
- `fix/*``2.22.1-fix.1` (dist-tag: `fix`)
88
- `feat/*``2.22.1-feat.1` (dist-tag: `feat`)
9-
- `chore/*``2.22.1-chore.1` (dist-tag: `chore`)
109
- `beta``2.22.1-beta.1` (dist-tag: `beta`)
1110

11+
Note: `chore/*` branches do not publish - they're for internal changes not meant for client distribution.
12+
1213
## GitHub Environment Setup
1314

1415
### 1. Create the Publish-Prerelease Environment
@@ -28,7 +29,7 @@ Since semantic-release now controls which branches can publish based on `release
2829

2930
**Option B: Restrict to specific patterns**
3031
- Select "Protected branches and tags only"
31-
- Add patterns: `fix/*`, `feat/*`, `chore/*`, `beta`
32+
- Add patterns: `fix/*`, `feat/*`, `beta`
3233

3334
### 3. Add Required Reviewers (Optional)
3435

@@ -143,12 +144,13 @@ npm install @segment/analytics-react-native@2.22.1-fix.1
143144
### "semantic-release says no version will be published"
144145

145146
Check that your branch name matches one of the configured patterns in `release.config.js`:
146-
- `fix/*`
147-
- `feat/*`
148-
- `chore/*`
149-
- `beta`
150-
- `master`
151-
- Version branches like `1.x` or `1.2.x`
147+
- `fix/*` - bug fixes for client distribution
148+
- `feat/*` - new features for client distribution
149+
- `beta` - explicit beta channel
150+
- `master` - production releases
151+
- Version branches like `1.x` or `1.2.x` - maintenance releases
152+
153+
Note: `chore/*` branches intentionally don't publish as they're for internal changes.
152154

153155
### "npm publish failed with 403"
154156

release.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = {
55
{ name: 'beta', prerelease: 'beta' }, // explicit beta channel
66
{ name: 'fix/*', prerelease: 'fix' }, // fix branches → x.x.x-fix.N
77
{ name: 'feat/*', prerelease: 'feat' }, // feature branches → x.x.x-feat.N
8-
{ name: 'chore/*', prerelease: 'chore' }, // chore branches → x.x.x-chore.N
98
],
109
tagFormat: '${name}-v${version}',
1110
plugins: [

0 commit comments

Comments
 (0)