Automated npm and GitHub releases based on commit messages
Automated npm and GitHub releases based on commit messages.
Follow the Angular commit message guideline,bump-version
does the rest!
bump-version
assues you have two release branches: master
and beta
. Each commit in these branches that is marked as a fix, feature or breaking change in it’s commit message triggers a new release.
beta
trigger prereleases, changes to master
trigger regular releases.1.2.3 -> 1.2.4
), a features increments the minor (1.2.3 -> 1.3.0
) and a breaking changes change the major version component (1.2.3 -> 2.0.0
)../out/
directory by default) added.package.json
doesn’t contain "private": true
.For further information take a look at the complete guideline in the angular respoitory.
fix(scope): Prevent an error
: Triggers a patch releasefeat(scope): Something new added
: Triggers a minor releasebreak(scope): Major API change
: Triggers a major releaseWith nodejs installed run npm install --save-dev @ls-age/bump-version
to add bump-version
as a dependency.
npx bump-version --gh-token <GITHUB API TOKEN>
Take a look at this respository’s CircleCI configuration for a real-world usage example.
For available options run npx bump-version --help
.