Skip to content

Commit

Permalink
chore: tweak release it
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjastrzebski committed Oct 25, 2024
1 parent f231ea3 commit 422c007
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
36 changes: 33 additions & 3 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,47 @@
{
"hooks": {
"before:init": ["yarn typecheck", "yarn test", "yarn lint"],
"after:bump": "yarn build",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"git": {
"commitMessage": "chore: release ${version}",
"commitMessage": "chore: release v${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
"release": true,
"releaseName": "v${version}"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "✨ Features"
},
{
"type": "perf",
"section": "💨 Performance Improvements"
},
{
"type": "fix",
"section": "🐛 Bug Fixes"
},
{
"type": "chore(deps)",
"section": "🛠️ Dependency Upgrades"
},
{
"type": "docs",
"section": "📚 Documentation"
}
]
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build:js": "babel src --out-dir build --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"",
"build:ts": "tsc --build tsconfig.release.json",
"build": "yarn clean && yarn build:js && yarn build:ts && yarn copy-flowtypes",
"publish": "yarn build && release-it"
"release": "release-it"
},
"files": [
"build/",
Expand Down

0 comments on commit 422c007

Please sign in to comment.