Skip to content

Commit

Permalink
chore: add release-it config, commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed May 13, 2021
1 parent e096154 commit 52deb93
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
40 changes: 31 additions & 9 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
{
"git": {
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://github.com/raw/release-it/release-it/master/templates/changelog-compact.hbs",
"tagName": "v${version}"
"tagName": "v${version}",
"commitMessage": "chore: release v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true,
"releaseName": "${version}",
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template https://github.com/raw/release-it/release-it/master/templates/changelog-compact.hbs"
"releaseName": "${version}"
},
"hooks": {
"after:bump": "npx auto-changelog --commit-limit false -p"
},
"npm": {
"publish": false
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "refactor",
"section": "Changes"
},
{
"type": "chore",
"section": "Maintenance"
}
]
}
}
}
}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,21 @@
"addons": [
"volto-subblocks"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"dependencies": {
"file-saver": "^2.0.5",
"react-google-recaptcha-v3": "^1.8.0",
"volto-subblocks": "collective/volto-subblocks#v1.0.1"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@release-it/conventional-changelog": "^2.0.1",
"husky": "^6.0.0"
}
}

0 comments on commit 52deb93

Please sign in to comment.