chore: switch to .release-it.json configuration (#119)
Replace the inline release-it configuration with a dedicated .release-it.json file for better organization and maintainability.
This commit is contained in:
parent
370fbdbaa6
commit
2f66258949
52
.release-it.json
Normal file
52
.release-it.json
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
|
||||
"github": {
|
||||
"release": false
|
||||
},
|
||||
"hooks": {
|
||||
"before:init": [
|
||||
"yarn lint"
|
||||
]
|
||||
},
|
||||
"npm": {
|
||||
"publish": true
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"infile": "CHANGELOG.md",
|
||||
"preset": {
|
||||
"name": "conventionalcommits",
|
||||
"types": [
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "test",
|
||||
"section": "Test added"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code refactoring"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Chores"
|
||||
},
|
||||
{
|
||||
"type": "docs",
|
||||
"section": "Documentation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"git": {
|
||||
"tagName": "v${version}",
|
||||
"requireBranch": "main"
|
||||
}
|
||||
}
|
||||
47
package.json
47
package.json
@ -62,53 +62,6 @@
|
||||
"release:patch": "npm run release -- patch",
|
||||
"release:minor": "npm run release -- minor"
|
||||
},
|
||||
"release-it": {
|
||||
"github": {
|
||||
"release": false
|
||||
},
|
||||
"hooks": {
|
||||
"before:init": [
|
||||
"yarn lint"
|
||||
]
|
||||
},
|
||||
"npm": {
|
||||
"publish": true
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"infile": "CHANGELOG.md",
|
||||
"preset": {
|
||||
"name": "conventionalcommits",
|
||||
"types": [
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "test",
|
||||
"section": "Test added"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code refactoring"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Chores"
|
||||
},
|
||||
{
|
||||
"type": "docs",
|
||||
"section": "Documentation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user