Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ Run with:
```
go test
```

## Release
Release are created using commitizen. To create a new release:
1. create a python venv if not existing: `python3 -m venv venv`
2. activate the venv: `source venv/bin/activate`
3. install commitizen: `pip install commitizen`
4. run `cz bump`
5. push to a new branch and make pr
6. once merged, delete the tag created by commitizen, tag the release commit on main and push it

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of weird that you have to delete the tag and tag again but I'm fine with it ☺️

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's a bit of a hack, otherwise we would have to push directly to main. I guess something like

cz bump --files-only --yes --changelog
git commit -am "bump: release $(cz version --project)"

would make more sense. Or just having a GitHub action do the whole process. Maybe I'll add that instead.

2 changes: 1 addition & 1 deletion cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
commitizen:
major_version_zero: true
name: cz_conventional_commits
tag_format: $version
tag_format: v$version
update_changelog_on_bump: true
version_provider: scm
version_scheme: semver2
Loading