Skip to content

Commit d66d150

Browse files
chore: add release-please config for automated versioning
Configure release-please to auto-bump versions across package.json and all 4 plugin manifest files on merge to main.
1 parent 5fc489b commit d66d150

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- uses: googleapis/release-please-action@v4
2222
id: release
2323
with:
24-
release-type: node
24+
config-file: release-please-config.json
25+
manifest-file: .release-please-manifest.json
2526

2627
publish:
2728
needs: release-please
@@ -40,9 +41,6 @@ jobs:
4041
- name: Install dependencies
4142
run: npm ci
4243

43-
- name: Sync version to plugin manifests
44-
run: node scripts/dev/bump-version.js --set ${{ needs.release-please.outputs.version }}
45-
4644
- name: Run tests
4745
run: npm test
4846

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.0"
3+
}

release-please-config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "node",
5+
"extra-files": [
6+
{ "type": "json", "path": ".claude-plugin/plugin.json", "jsonpath": "$.version" },
7+
{ "type": "json", "path": ".claude-plugin/marketplace.json", "jsonpath": "$.plugins[0].version" },
8+
{ "type": "json", "path": ".cursor-plugin/plugin.json", "jsonpath": "$.version" },
9+
{ "type": "json", "path": ".cursor-plugin/marketplace.json", "jsonpath": "$.plugins[0].version" }
10+
]
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)