diff --git a/AGENTS.md b/AGENTS.md index f0c8577..44a6e09 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,7 +42,7 @@ apps/web -> 上の全部 - `main` への push で release-please がリリース PR (版と CHANGELOG.md) を開き直す。リリース PR をマージすると GitHub Release を作り、CI の release ジョブが 3 つのパッケージを同じ版で GitHub Packages に公開する ([ADR-0007](docs/adr/0007-distribution-github-packages.md)) - `develop` → `main` の PR を作り、マージしてからリリース PR をマージする -- 版の上げ方は Conventional Commits から決まる (`feat:` で minor、`fix:` / `refactor:` / `perf:` で patch。0.x のあいだは破壊的変更も minor)。レシピの互換は [ADR-0008](docs/adr/0008-recipe-compatibility.md) +- 版の上げ方は Conventional Commits から決まる (`feat:` で minor、`fix:` / `refactor:` / `perf:` で patch、破壊的変更 (`feat!:` や `BREAKING CHANGE:`) で major)。レシピの互換は [ADR-0008](docs/adr/0008-recipe-compatibility.md) - 同じ版は出し直せない。公開の設定は `tooling/packages.test.ts` が確かめる ## テストの書き方 diff --git a/docs/adr/0008-recipe-compatibility.md b/docs/adr/0008-recipe-compatibility.md index 5e05013..23630de 100644 --- a/docs/adr/0008-recipe-compatibility.md +++ b/docs/adr/0008-recipe-compatibility.md @@ -32,3 +32,9 @@ ## References - ADR-0003、lumorphia/prismtone ADR-0009 + +## 追記 (2026-10-06): 最初の版は 1.0.0 + +最初のリリースは 0.1.0 のつもりだったが、release-please の `initial-version` を設定しておらず、前のリリースが無いときの既定の 1.0.0 になった (`.release-please-manifest.json` の `0.0.0` は前のリリースとして扱われない)。公開した 1.0.0 はそのまま使う (使っているのは prismtone だけで、実害は無い)。 + +そのため、上の「0.x のあいだは minor を major として扱う」は当てはまらない。以後は通常の semver で、既存の版を読めなくする変更は major (2.0.0) にする。 diff --git a/release-please-config.json b/release-please-config.json index ab512e0..b359c45 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -2,7 +2,6 @@ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "release-type": "node", "include-component-in-tag": false, - "bump-minor-pre-major": true, "bootstrap-sha": "f92c3e49001908c53349890ca438dfc56efc4bbb", "changelog-sections": [ { "type": "feat", "section": "Features" },