Skip to content

Commit

Permalink
feat: add release tooling
Browse files Browse the repository at this point in the history
Ref: GH-10
  • Loading branch information
georgeflug committed Oct 22, 2022
1 parent 2bbe279 commit b2bdcf8
Show file tree
Hide file tree
Showing 5 changed files with 11,811 additions and 2,117 deletions.
13 changes: 13 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "\n\nLinting the commit message"


if ! npx --no -- commitlint --edit; then
echo "The commit message must follow Conventional Commit format! Examples:"
echo " feat: add new features"
echo " fix: fix the bugs"
echo " chore: bump library versions"
exit 1
fi
14 changes: 14 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
}
}
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}
Loading

0 comments on commit b2bdcf8

Please sign in to comment.