Note: The
GITHUB_TOKEN
secret is required for this action to function. For more information, see Managing GitHub Actions settings for a repository in the GitHub Help documentation. and enable read/write access to the repository.
- Also, if you change the jar name in the pom.yml, you need to go to the pipeline.yml
file and change the name of the jar in the
JAR_NAME
env variable.
Naming is important, it helps to understand what is going on in the branch and the commit. It also helps to automate the process of creating a release.
The action will parse the new commits since the last tag using the semantic-release conventions.
semantic-release uses the commit messages to determine the type of changes in the codebase. Following formalized conventions for commit messages, semantic-release automatically determines the next semantic version number.
By default semantic-release uses Angular Commit Message Conventions.
Here is an example of the release type that will be done based on a commit messages:
Commit message | Release type |
|
Patch Release |
|
Minor Release |
|
Major Release |
If no commit message contains any information, then default_bump will be used.
Version: major.minor.patch
Changing major version will reset minor and patch to 0
Changing minor version will reset patch to 0