https://github.com/elc/semanticreleasepoc
https://github.com/elc/semanticreleasepoc
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/elc/semanticreleasepoc
- Owner: ELC
- Created: 2023-10-10T00:19:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-27T21:01:26.000Z (over 1 year ago)
- Last Synced: 2025-04-10T16:24:26.464Z (about 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# SemanticReleasePoC
Steps:
On the pre-commit:
Install pre-commits with
```
pre-commit install --hook-type commit-msg
```
Run Commitizen to verify proper syntax with each commit
On the PR CICD run:
This creates a changelog but does not commit. We manually add the modified files
and commit. This ensures that the modified branch gets always the latest
changelog and a rule will ignore the `chore*` commits in the changelog to avoid
meaningless entries.
```
semantic-release -v version --no-vcs-release --no-commit
git add --all
git commit -m "chore(release): bump version and update changelog [skip ci]"
git push --force
```
On merge CICD run:
Compute the proper version number and create a tag after publishing the package
```
version_number=$(semantic-release -v version --print)
git tag $version_number
git push origin --tags
```