Skip to content

Commit 3498f3a

Browse files
chore: release the three packages as one unit, starting with a beta (#208)
The previous config declared each package separately, so merging the release PR would have created three tags and three draft GitHub Releases. Publishing any one of them fires publish.yml, which publishes all three packages - so the first release would have done the whole job and the other two would have failed with "cannot publish over the previously published versions". The changelog was also split three ways, with no single place describing the release. These packages are versioned in lockstep and published together, so they are one releasable unit. The root is now the only release: one tag, one GitHub release, one changelog. The three package.json versions are updated through extra-files, which is what keeps them in step - the workspace: protocol plus pnpm pack already handles the ranges between them. Two things fall out of this. The grouped PR title interpolates ${version} again, because release-please takes it from the release at path "." and there was not one before. And the tag is v<version>, matching every tag this repo has used since v4. Also switches to prerelease versioning, so the next release is 5.1.0-beta published to the `next` dist-tag. Dropping `prerelease`, `prerelease-type` and `versioning` from the package graduates it to a stable 5.1.0 on `latest`. Verified by dry run against this branch: ✔ updating from 1.0.0 to 5.1.0-beta Would open 1 pull requests updates: packages/plugin-rest-cache/package.json, packages/provider-rest-cache-memory/package.json, packages/provider-rest-cache-redis/package.json, CHANGELOG.md, .release-please-manifest.json Co-authored-by: Claude <noreply@anthropic.com>
1 parent b470da6 commit 3498f3a

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎.release-please-manifest.json‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"packages/plugin-rest-cache": "5.0.1",
3-
"packages/provider-rest-cache-memory": "5.0.0",
4-
"packages/provider-rest-cache-redis": "5.0.0"
2+
".": "5.0.1"
53
}

‎release-please-config.json‎

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,8 @@
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"release-type": "node",
44
"separate-pull-requests": false,
5-
"group-pull-request-title-pattern": "chore: release ${version}",
65
"pull-request-title-pattern": "chore: release ${version}",
76
"draft": true,
8-
"prerelease-type": "beta",
9-
"plugins": [
10-
{
11-
"type": "linked-versions",
12-
"groupName": "rest-cache",
13-
"components": [
14-
"plugin-rest-cache",
15-
"provider-rest-cache-memory",
16-
"provider-rest-cache-redis"
17-
]
18-
}
19-
],
207
"changelog-sections": [
218
{
229
"type": "feat",
@@ -63,14 +50,29 @@
6350
}
6451
],
6552
"packages": {
66-
"packages/plugin-rest-cache": {
67-
"component": "plugin-rest-cache"
68-
},
69-
"packages/provider-rest-cache-memory": {
70-
"component": "provider-rest-cache-memory"
71-
},
72-
"packages/provider-rest-cache-redis": {
73-
"component": "provider-rest-cache-redis"
53+
".": {
54+
"component": "",
55+
"changelog-path": "CHANGELOG.md",
56+
"extra-files": [
57+
{
58+
"type": "json",
59+
"path": "packages/plugin-rest-cache/package.json",
60+
"jsonpath": "$.version"
61+
},
62+
{
63+
"type": "json",
64+
"path": "packages/provider-rest-cache-memory/package.json",
65+
"jsonpath": "$.version"
66+
},
67+
{
68+
"type": "json",
69+
"path": "packages/provider-rest-cache-redis/package.json",
70+
"jsonpath": "$.version"
71+
}
72+
],
73+
"prerelease": true,
74+
"prerelease-type": "beta",
75+
"versioning": "prerelease"
7476
}
7577
},
7678
"last-release-sha": "6407e61f4c89863c84e542bc2a92a07801ff4f9a"

0 commit comments

Comments
 (0)