From c20768bf02f4b95894eeda26dd21a15d4c8bea6b Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Wed, 29 Jul 2026 11:25:02 +0100 Subject: [PATCH] ci: configure release-please for the 2.0.0 beta line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .release-please-manifest.json | 1 + release-please-config.json | 61 +++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..8d6e472 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{".":"1.1.0"} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..0d0a7c1 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,61 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "release-type": "go", + "changelog-path": "CHANGELOG.md", + "versioning": "prerelease", + "prerelease": true, + "prerelease-type": "beta", + "draft": false, + "include-component-in-tag": false + } + }, + "changelog-sections": [ + { + "type": "feat", + "hidden": false, + "section": "Features" + }, + { + "type": "fix", + "hidden": false, + "section": "Bug Fixes" + }, + { + "type": "ci", + "hidden": false, + "section": "CI" + }, + { + "type": "docs", + "hidden": false, + "section": "Docs" + }, + { + "type": "deps", + "hidden": false, + "section": "Dependency Updates" + }, + { + "type": "perf", + "hidden": false, + "section": "Performance Improvements" + }, + { + "type": "refactor", + "hidden": false, + "section": "Refactoring" + }, + { + "type": "test", + "hidden": false, + "section": "Tests" + }, + { + "type": "chore", + "hidden": false, + "section": "Other" + } + ] +}