Skip to content

Commit 02ac6d5

Browse files
committed
chore: Add release configuration files for automated versioning
- Introduced .release-please-manifest.json to define the initial version. - Added release-please-config.json to configure release management for the Prometheus Todoist Exporter, specifying package details and changelog types. - Updated GitHub Actions workflow to utilize the new configuration and manifest files for streamlined release processes.
1 parent a17cfd6 commit 02ac6d5

File tree

3 files changed

+73
-2
lines changed

3 files changed

+73
-2
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: googleapis/release-please-action@v4
16+
- id: release
17+
uses: googleapis/release-please-action@v4
1718
with:
1819
token: ${{ secrets.GITHUB_TOKEN }}
19-
release-type: simple
20+
config-file: release-please-config.json
21+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

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

release-please-config.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "python",
5+
"package-name": "prometheus-todoist-exporter",
6+
"extra-files": [
7+
{
8+
"type": "json",
9+
"path": "pyproject.toml",
10+
"jsonpath": "$.tool.poetry.version"
11+
},
12+
{
13+
"type": "simple",
14+
"path": "prometheus_todoist_exporter/__init__.py",
15+
"pattern": "__version__ = \"${version}\""
16+
}
17+
]
18+
}
19+
},
20+
"bump-minor-pre-major": true,
21+
"bump-patch-for-minor-pre-major": true,
22+
"include-v-in-tag": true,
23+
"pull-request-header": "# Automated Release PR",
24+
"changelog-types": [
25+
{
26+
"type": "feat",
27+
"section": "Features",
28+
"hidden": false
29+
},
30+
{
31+
"type": "fix",
32+
"section": "Bug Fixes",
33+
"hidden": false
34+
},
35+
{
36+
"type": "docs",
37+
"section": "Documentation",
38+
"hidden": false
39+
},
40+
{
41+
"type": "chore",
42+
"section": "Miscellaneous",
43+
"hidden": true
44+
},
45+
{
46+
"type": "refactor",
47+
"section": "Code Refactoring",
48+
"hidden": false
49+
},
50+
{
51+
"type": "test",
52+
"section": "Tests",
53+
"hidden": true
54+
},
55+
{
56+
"type": "build",
57+
"section": "Build System",
58+
"hidden": true
59+
},
60+
{
61+
"type": "ci",
62+
"section": "Continuous Integration",
63+
"hidden": true
64+
}
65+
]
66+
}

0 commit comments

Comments
 (0)