Skip to content

Commit df309a1

Browse files
author
James Ainslie
committed
ci: add release-please automation
- Add release-please workflow for automated releases - Add release-please config (conventional commits, Go project) - Initialize manifest at version 2.0.0 to indicate fork divergence
1 parent d27d852 commit df309a1

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed
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+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
config-file: .release-please-config.json
20+
manifest-file: .release-please-manifest.json
21+

.release-please-config.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "go",
6+
"package-name": "staff",
7+
"bump-minor-pre-major": true,
8+
"bump-patch-for-minor-pre-major": true,
9+
"changelog-sections": [
10+
{
11+
"type": "feat",
12+
"section": "Features"
13+
},
14+
{
15+
"type": "fix",
16+
"section": "Bug Fixes"
17+
},
18+
{
19+
"type": "perf",
20+
"section": "Performance Improvements"
21+
},
22+
{
23+
"type": "refactor",
24+
"section": "Code Refactoring"
25+
},
26+
{
27+
"type": "docs",
28+
"section": "Documentation"
29+
},
30+
{
31+
"type": "test",
32+
"section": "Tests",
33+
"hidden": false
34+
},
35+
{
36+
"type": "build",
37+
"section": "Build System"
38+
},
39+
{
40+
"type": "ci",
41+
"section": "Continuous Integration"
42+
}
43+
]
44+
}
45+
}
46+
}

.release-please-manifest.json

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

0 commit comments

Comments
 (0)