In a traditional semantic versioning scheme, there exists a standard pattern of versioning:
MAJOR.MINOR.PATCH
gradle-semantic-release-plugin uses this strategy to apply to Git commits
Here are ways to apply a version update on each commit
If a commit starts with:
fix(..)
--> bumps PATCHdocs(..)
--> skips github release, but creates a SNAPSHOT of the next PATCH version
You must export GH_TOKEN
environment variable to your environment with a GitHub token
as the value to be able to use the release
task.
Add the GH_TOKEN
variable to your TravisCI pipeline.
On every push to the master
branch, a release will take place.
Refer to .travis.yml
file on how to create a TravisCI pipeline configuration.
- On
develop
, add commits as per development flow. Semantic Release will not release ondevelop
- Each commit should follow the convention outlined here
- When ready to create a release, switch to
master
and merge all commits fromdevelop
and push! - On
master
, TravisCI will build the branch and triggerrelease
which will cut SNAPSHOT into a release version. release
will also create a release artifact inReleases
release
will also create a tag with the released version.