semantic-release-example
v3.0.1
Published
Example implementation of the semantic-release package
Downloads
26
Readme
semantic-release-example
Introduction
This (very simple) package hopefully helps to illustrate how to implement the semantic-release
package in an existing NPM package.
Implementation Notes
Use the semantic-release-cli
package to get setup.
It uses the Angular commit message convention which is also the default commit message convention for semantic-release
.
It uses commitlint
for (you guessed it) commit linting, and husky
for Git hooks (specifically, the commit-msg
hook.
The npm run semantic-commit
script triggers a helpful commit message CLI (the commitlint cli
package)
A new release is cut when the master
branch Travis build successfully completes and there's a formatted commit message that should trigger a semantic version change. A Git tag is created, a GitHub release is created, and the NPM package is published with the appropriate semantic version update.