Skip to content

Commit 8561b48

Browse files
HerbHallclaude
andauthored
chore: add release-please for automated release management (#25)
Adds release-please (Google, v4 GitHub Action) configuration per ADR-0015 release standardization. Creates Release PRs automatically on push to main, with VERSION file as single source of truth. Cargo.toml version managed natively by release-type: rust. Existing release.yml workflow is unchanged -- release-please creates the tags that trigger it. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5d51c0b commit 8561b48

4 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
release_created: ${{ steps.release.outputs.release_created }}
16+
tag_name: ${{ steps.release.outputs.tag_name }}
17+
version: ${{ steps.release.outputs.version }}
18+
steps:
19+
- uses: googleapis/release-please-action@v4
20+
id: release
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}

.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.7.0"
3+
}

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.7.0

release-please-config.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "rust",
6+
"version-file": "VERSION",
7+
"changelog-path": "CHANGELOG.md",
8+
"bump-minor-pre-major": true,
9+
"bump-patch-for-minor-pre-major": true
10+
}
11+
},
12+
"changelog-sections": [
13+
{ "type": "feat", "section": "Features" },
14+
{ "type": "fix", "section": "Bug Fixes" },
15+
{ "type": "perf", "section": "Performance" },
16+
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
17+
{ "type": "docs", "section": "Documentation", "hidden": true },
18+
{ "type": "chore", "section": "Miscellaneous", "hidden": true },
19+
{ "type": "test", "section": "Tests", "hidden": true }
20+
]
21+
}

0 commit comments

Comments
 (0)