Skip to content

Commit

Permalink
chore: added commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Apr 22, 2024
1 parent ffec9cb commit 372932b
Show file tree
Hide file tree
Showing 4 changed files with 1,037 additions and 31 deletions.
44 changes: 32 additions & 12 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
{
"hooks": {
"after:bump": "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version}",
"after:release": "rm .changelog.draft"
},
"git": {
"changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
"requireUpstream": false,
"requireCleanWorkingDir": false,
"commitMessage": "Release ${version}",
"tagName": "${version}",
"tagAnnotation": "Release ${version}"
"tagName": "v${version}",
"commitMessage": "chore: release v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true,
"releaseName": "${version}",
"releaseNotes": "cat .changelog.draft"
"releaseName": "${version}"
},
"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'] };
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
},
"devDependencies": {
"@babel/eslint-parser": "7.22.15",
"@commitlint/config-conventional": "^16.0.0",
"@plone/scripts": "^3.3.2",
"@release-it/conventional-changelog": "^3.3.0",
"eslint": "8.49.0",
"eslint-config-prettier": "9.0.0",
"eslint-config-react-app": "7.0.1",
Expand Down
Loading

0 comments on commit 372932b

Please sign in to comment.