Skip to content

Commit cd03c55

Browse files
authored
feat: release-please cleanup (#115)
Stop forcing the initial version to 0.1.0, to allow for release-please version updates. Also, automate the update of the README on release. Closes #114 Signed-off-by: Francesco Canovai <[email protected]>
1 parent aa45512 commit cd03c55

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/release-please.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ jobs:
3939
path: ./manifest.yaml
4040
# TODO: remove bump-minor-pre-major when in production. It prevents
4141
# release-please from bumping the major version on breaking changes.
42-
# TODO: remove release-as after first release. Used to set the first
43-
# release version, which would default to 1.0.0. Set the version
44-
# manually also for 1.0.0.
4542
# We use a GitHub token with write permissions to create the release,
4643
# otherwise we won't be able to trigger a new run when pushing on main.
4744
- name: Run release-please

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ Both checks are necessary to proceed with the installation.
105105

106106
Use `kubectl` to apply the manifest for the latest commit in the `main` branch:
107107

108+
<!-- x-release-please-start-version -->
108109
```sh
109110
kubectl apply -f \
110111
https://github.com/cloudnative-pg/plugin-barman-cloud/releases/download/v0.1.0/manifest.yaml
111112
```
113+
<!-- x-release-please-end -->
112114

113115
Example output:
114116

release-please-config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"bump-minor-pre-major": true,
55
"bump-patch-for-minor-pre-major": false,
66
"draft": false,
7+
"extra-files": [
8+
"README.md"
9+
],
710
"prerelease": false,
811
"packages": {
912
".": {}
1013
},
1114
"plugins": [ "sentence-case" ],
12-
"release-as": "0.1.0",
1315
"signoff": "Peggie <[email protected]>",
1416
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
1517
}

0 commit comments

Comments
 (0)