Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here's an optional automated release workflow other project I use have benefitted from. This does several things.
Commit hooks
This sets up several commit hooks to run checks on
pre-commit
andpre-push
.Enforce conventional commit messages
Spec
To use this
npm run commit
. This opens a prompt that guides you through the commit message. This is used later create semver released and an automated changelog.Automated releases
A
feat
will be either a major (if there are any breaking changes) or minor version bump. Afix
will lead to a patch version update. Anything else won't trigger a release. If set-up with tokens it will release to NPM and github. It will even release update the version in thepackage.json
and the commit the changed files to github. Also files will be formatted with prettier by default.Setup
First:
npm install -g semantic-release-cli
Then:
semantic-release-cli setup
Important! Answer NO to "Generate travis.yml" question