Skip to content

Commit c20768b

Browse files
committed
ci: configure release-please for the 2.0.0 beta line
Flagsmith/github-webhook-handler runs release-please centrally for any repo that has release-please-config.json and .release-please-manifest.json at its root, so no workflow is checked in here — and a .github/workflows file whose name contains "release-please" would opt the repo back out. `versioning: prerelease` and `prerelease: true` are both required: the strategy strips the -beta suffix and hands back a bare major.minor.patch unless `prerelease` is set. Together they keep the beta line on 2.0.0-beta.N for every commit type until we flip `prerelease` off, at which point the next release is exactly 2.0.0. The manifest starts at the last npm release, 1.1.0, whose tag sits on the commit below `feat!: CLI v2` — so the first release considers exactly that commit, and Release-As pins it to a numbered beta instead of the bare 2.0.0-beta that bumpPrerelease would produce from a version with no prerelease digits. beep boop Release-As: 2.0.0-beta.1
1 parent 93ecd2d commit c20768b

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"1.1.0"}

release-please-config.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "go",
6+
"changelog-path": "CHANGELOG.md",
7+
"versioning": "prerelease",
8+
"prerelease": true,
9+
"prerelease-type": "beta",
10+
"draft": false,
11+
"include-component-in-tag": false
12+
}
13+
},
14+
"changelog-sections": [
15+
{
16+
"type": "feat",
17+
"hidden": false,
18+
"section": "Features"
19+
},
20+
{
21+
"type": "fix",
22+
"hidden": false,
23+
"section": "Bug Fixes"
24+
},
25+
{
26+
"type": "ci",
27+
"hidden": false,
28+
"section": "CI"
29+
},
30+
{
31+
"type": "docs",
32+
"hidden": false,
33+
"section": "Docs"
34+
},
35+
{
36+
"type": "deps",
37+
"hidden": false,
38+
"section": "Dependency Updates"
39+
},
40+
{
41+
"type": "perf",
42+
"hidden": false,
43+
"section": "Performance Improvements"
44+
},
45+
{
46+
"type": "refactor",
47+
"hidden": false,
48+
"section": "Refactoring"
49+
},
50+
{
51+
"type": "test",
52+
"hidden": false,
53+
"section": "Tests"
54+
},
55+
{
56+
"type": "chore",
57+
"hidden": false,
58+
"section": "Other"
59+
}
60+
]
61+
}

0 commit comments

Comments
 (0)