You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/release-please-config.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,19 +82,23 @@ The `eds-core-react` package uses a **dual release strategy** to support both st
82
82
"packages/eds-core-react/src/components/next": {
83
83
"release-type": "simple",
84
84
"component": "eds-core-react-next",
85
-
"prerelease-type": "beta"
85
+
"prerelease": true,
86
+
"prerelease-type": "beta",
87
+
"versioning": "prerelease"
86
88
}
87
89
```
88
90
89
91
- Only includes files in `src/components/next/`
90
92
- Published to `@equinor/eds-core-react@beta`
91
93
- Uses `src/components/next/CHANGELOG.md`
92
-
- Version format: `2.0.1-beta.0`, `2.0.1-beta.1`, etc.
94
+
- Version format: `3.0.0-beta.1`, `3.0.0-beta.2`, etc. — the base is pinned at the upcoming `3.0.0` major; only the beta counter increments
93
95
94
96
**Key Configuration Options:**
95
97
96
98
-`exclude-paths`: Prevents `/next` components from affecting stable releases
97
99
-`prerelease-type: "beta"`: Adds `-beta.X` suffix to versions
100
+
-`versioning: "prerelease"`: Pins the version base. At `3.0.0-beta.N` (minor and patch are both 0), every commit type — `fix`, `feat`, and breaking `!` — bumps only the beta counter, never the base
101
+
-`prerelease: true`: Keeps the `-beta.N` suffix on bumps (without it, the `prerelease` versioning strategy strips the suffix). Flipping this to `false` is the graduation lever: the next release becomes a clean `3.0.0`
98
102
-`changelog-path`: Uses separate changelog for beta releases
# Breaking changes - use ! so the change lands in the BREAKING CHANGES changelog section
333
+
fix(next)!: convert Input 2.0 BEM classes to flat class names
331
334
```
332
335
333
-
**Important:** Avoid using `!` (breaking change marker) for beta releases. Beta components are experimental and breaking changes are expected. Using `!` would trigger a major version bump (e.g., `2.0.1-beta.0` → `3.0.0-beta.0`), which is unnecessary for components under development.
334
-
335
-
This warning applies to the `eds-core-react-next` entry, which uses the default versioning strategy. The `eds-tokens` entry is immune: with `versioning: "prerelease"` and its base pinned at `3.0.0`, any commit type only increments the beta counter (see the whole-package-in-beta section above).
336
+
**Breaking changes:** Use the `!` marker (with a `BREAKING CHANGE:` footer describing the migration). Both `eds-core-react-next` and `eds-tokens` use `versioning: "prerelease"` with the base pinned at `3.0.0`, so `!` does **not** roll the version — every commit type only increments the beta counter (`3.0.0-beta.1` → `3.0.0-beta.2`). The `!` gives consumers a "⚠ BREAKING CHANGES" section in the changelog and the GitHub release notes.
Copy file name to clipboardExpand all lines: documentation/how-to/BETA_RELEASE_GUIDE.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ feat(next): add new TextInput component
34
34
# Bug fixes
35
35
fix(next): correct Placeholder styling
36
36
37
-
# Breaking changes
38
-
feat(next): change Button API
37
+
# Breaking changes — use ! and a BREAKING CHANGE footer
38
+
feat(next)!: change Button API
39
39
```
40
40
41
-
> **Note:**Skip the conventional-commit `!` marker for beta components. Release Please treats `!` as a major-bump signal even for prereleases, so we call out breaking details in the description/body instead of using `!`.
41
+
> **Note:**Use the conventional-commit `!` marker for breaking changes in beta components. The version base is pinned at `3.0.0` (`versioning: "prerelease"` in `release-please-config.json`), so `!` does not bump the major — it only increments the beta counter — while giving consumers a "⚠ BREAKING CHANGES" section in the changelog and release notes.
42
42
43
43
### Stable Release (for existing components)
44
44
@@ -135,7 +135,9 @@ pnpm storybook
135
135
136
136
## Version Scheme
137
137
138
-
Beta versions follow this pattern: `2.0.1-beta.0`, `2.0.1-beta.1`, etc.
138
+
Beta versions follow a fixed series pinned at the upcoming major: `3.0.0-beta.1`, `3.0.0-beta.2`, etc.
139
+
140
+
The base never moves during the beta period — every release (`fix`, `feat`, or breaking `!`) increments only the beta counter. This is enforced by `versioning: "prerelease"` + `prerelease: true` on the `eds-core-react-next` entry in `.github/release-please-config.json` (same scheme as `eds-tokens`). At graduation, EDS 2.0 ships as stable `3.0.0`.
139
141
140
142
## `@equinor/eds-tokens`: Whole Package in Beta
141
143
@@ -262,7 +264,8 @@ EDS 2.0 components will graduate as a **complete set** in a single major release
262
264
| Major release | 3.0.0 | EDS 2.0 only | Update imports, test, migrate |
263
265
264
266
5. **Release**:
265
-
- Major version bump: `2.x.x` → `3.0.0`
267
+
- The beta series graduates in place: `3.0.0-beta.N` → `3.0.0`
268
+
- Mechanism: set`"prerelease": false` on the `eds-core-react-next` entry in`.github/release-please-config.json` (the `prerelease` versioning strategy then emits a stable version), or force the version with a `Release-As: 3.0.0` commit footer
266
269
- All EDS 2.0 components become the default
267
270
- Beta releases deprecated
268
271
- Migration guide published
@@ -278,8 +281,8 @@ EDS 2.0 components will graduate as a **complete set** in a single major release
278
281
**Within `/next` (beta releases):**
279
282
280
283
- ✅ Breaking changes are allowed and expected
281
-
- ✅ Use regular `feat(next):`commits (no `!` needed)
282
-
- ✅ Version bumps prerelease number: `beta.0` → `beta.1`
284
+
- ✅ Mark them with `!` and a `BREAKING CHANGE:`footer (e.g. `fix(next)!: ...`) so they appear under "⚠ BREAKING CHANGES"in the changelog
285
+
- ✅ The version base stays pinned: every release bumps only the prerelease number, `3.0.0-beta.1` → `3.0.0-beta.2`
0 commit comments