Skip to content

Commit 374bf0a

Browse files
authored
chore(release): enable separate PRs and drop 1.0.0 bootstrap override (#185)
## Summary - Enable `"separate-pull-requests": true` in `release-please-config.json` so `github-tracker` and `github-tracker-mcp` open independent release PRs - Remove `"release-as": "1.0.0"` from the root `.` package so `github-tracker` increments from `0.1.0` (`0.1.1` / `0.2.0`) until launch - Update `mcp/tests/version.test.ts` and `DEPLOY.md` to assert and document the updated configuration
1 parent 97050e3 commit 374bf0a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎DEPLOY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ App (`github-tracker`) and MCP server (`github-tracker-mcp`) releases are automa
293293

294294
### How releases work
295295

296-
1. **Conventional commits on `main` → Release PR:** Every push to `main` triggers `.github/workflows/release.yml`, which mints a short-lived installation token via `actions/create-github-app-token` and runs `googleapis/release-please-action`. Using a GitHub App token (rather than `GITHUB_TOKEN`) ensures `pull_request` CI workflows run automatically on the proposed release PR.
297-
2. **Bootstrap (`1.0.0`) and post-release cleanup:** `release-please-config.json` sets `"bootstrap-sha"` to `c63711d42eb125da7be9016a0d853a1cf8c6534d` and `"release-as": "1.0.0"` on the root `.` package. If only hidden commit types (`ci:`, `chore:`, `docs:`, `test:`, `refactor:`) exist after `bootstrap-sha`, release-please will wait for a `feat:`/`fix:`/`perf:` commit—or a commit with a `Release-As: 1.0.0` footer—before opening the initial root release PR. **After the first `github-tracker@1.0.0` release PR merges, remove `"release-as": "1.0.0"` from `release-please-config.json` in a `chore(release):` commit** so subsequent releases increment normally from commits.
296+
1. **Conventional commits on `main` → Per-component Release PRs:** Every push to `main` triggers `.github/workflows/release.yml`, which mints a short-lived installation token via `actions/create-github-app-token` and runs `googleapis/release-please-action`. With `"separate-pull-requests": true` in `release-please-config.json`, `release-please` maintains separate release PRs for `github-tracker` and `github-tracker-mcp` so either package can be released independently. Using a GitHub App token (rather than `GITHUB_TOKEN`) ensures `pull_request` CI workflows run automatically on the proposed release PRs.
297+
2. **Bootstrap SHA (`c63711d`):** `release-please-config.json` sets `"bootstrap-sha"` to `c63711d42eb125da7be9016a0d853a1cf8c6534d` so `release-please` only scans commits after that baseline when computing version bumps (`0.1.0` → `0.1.1`/`0.2.0` for `github-tracker`, `0.1.1` → `0.1.2`/`0.2.0` for `github-tracker-mcp`).
298298
3. **Merging the Release PR:** When a release PR merges to `main`, `release-please` creates the git tag (`github-tracker@x.y.z` and/or `github-tracker-mcp@x.y.z`), writes `CHANGELOG.md` (and `mcp/CHANGELOG.md`), and publishes the GitHub Release:
299299
- When the root `github-tracker` package is released (`release_created == 'true'`), the downstream `deploy` job in `release.yml` invokes `.github/workflows/deploy.yml` (`workflow_call`) at the new `github-tracker@x.y.z` tag, running full verification (`typecheck`, `lint`, `test`, WAF smoke, `test:e2e`), `pnpm validate:deploy`, `pnpm run build`, and `wrangler deploy`.
300300
- When `mcp--release_created` is `'true'`, the downstream `publish-mcp` job in `release.yml` checks out the new `github-tracker-mcp@x.y.z` tag, runs `pnpm typecheck`, `pnpm build`, and `pnpm test`, and publishes `github-tracker-mcp` to npm with OIDC provenance (`id-token: write`, no `NPM_TOKEN`).

‎mcp/tests/version.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ interface ReleasePleaseManifest {
1616

1717
interface ReleasePleasePackageConfig {
1818
component?: string;
19+
"release-as"?: string;
1920
"extra-files"?: string[];
2021
"exclude-paths"?: string[];
2122
}
2223

2324
interface ReleasePleaseConfig {
25+
"separate-pull-requests"?: boolean;
2426
packages: {
2527
".": ReleasePleasePackageConfig;
2628
mcp: ReleasePleasePackageConfig;
@@ -58,7 +60,9 @@ describe("MCP and release-please version synchronization", () => {
5860
const config = readJson("release-please-config.json") as ReleasePleaseConfig;
5961

6062
expect(rootPkg.version).toBe(manifest["."]);
63+
expect(config["separate-pull-requests"]).toBe(true);
6164
expect(config.packages["."]?.component).toBe(rootPkg.name);
65+
expect(config.packages["."]["release-as"]).toBeUndefined();
6266
expect(config.packages.mcp?.component).toBe(mcpPkg.name);
6367
expect(config.packages.mcp["extra-files"]).toContain("src/index.ts");
6468
expect(config.packages["."]["exclude-paths"]).toContain("mcp");

‎release-please-config.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"include-v-in-tag": false,
55
"tag-separator": "@",
66
"include-component-in-tag": true,
7+
"separate-pull-requests": true,
78
"bootstrap-sha": "c63711d42eb125da7be9016a0d853a1cf8c6534d",
89
"changelog-sections": [
910
{ "type": "feat", "section": "Features" },
@@ -21,7 +22,6 @@
2122
"packages": {
2223
".": {
2324
"component": "github-tracker",
24-
"release-as": "1.0.0",
2525
"exclude-paths": ["mcp"],
2626
"changelog-path": "CHANGELOG.md"
2727
},

0 commit comments

Comments
 (0)