Skip to content

Commit f083d75

Browse files
authored
ci: introduce release-please (#427)
Adopt googleapis/release-please-action for automated release PRs based on Conventional Commits, mirroring the gohan setup. - .github/workflows/release-please.yml: run on push to main - .release-please-config.json: go release type, v-prefixed tags, conventional-commit changelog sections - .release-please-manifest.json: seed at current release (8.4.0) When commits land on main, release-please opens / updates a release PR that bumps CHANGELOG.md and (on merge) creates the next vX.Y.Z tag, which in turn triggers the existing GoReleaser workflow.
1 parent d5143a4 commit f083d75

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
name: Run release-please
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: release-please
18+
uses: googleapis/release-please-action@v4
19+
with:
20+
config-file: .release-please-config.json
21+
manifest-file: .release-please-manifest.json

.release-please-config.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "go",
4+
"include-component-in-tag": false,
5+
"include-v-in-tag": true,
6+
"bump-minor-pre-major": false,
7+
"bump-patch-for-minor-pre-major": false,
8+
"packages": {
9+
".": {
10+
"package-name": "ggc",
11+
"changelog-sections": [
12+
{ "type": "feat", "section": "Features" },
13+
{ "type": "fix", "section": "Bug Fixes" },
14+
{ "type": "perf", "section": "Performance Improvements" },
15+
{ "type": "revert", "section": "Reverts" },
16+
{ "type": "refactor", "section": "Refactors" },
17+
{ "type": "docs", "section": "Documentation" },
18+
{ "type": "test", "section": "Tests" },
19+
{ "type": "build", "section": "Build System" },
20+
{ "type": "ci", "section": "Continuous Integration" },
21+
{ "type": "chore", "section": "Miscellaneous", "hidden": false }
22+
]
23+
}
24+
}
25+
}

.release-please-manifest.json

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

0 commit comments

Comments
 (0)