Skip to content

Commit

Permalink
Merge pull request #169 from dream-sports-labs/fix/release-config-cle…
Browse files Browse the repository at this point in the history
…anup

fix: release config cleanup
  • Loading branch information
princektripathi authored Jan 6, 2025
2 parents 800b2ad + 6c738dd commit 51584a4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"git": {
"requireCleanWorkingDir": true,
"requireBranch": "main",
"commitMessage": "Release v${version}",
"commitMessage": "chore: update changelog and bump version to v${version}",
"tagName": "v${version}",
"tagAnnotation": "Release v${version}",
"push": false
Expand All @@ -22,12 +22,17 @@
}
},
"hooks": {
"before:init": ["yarn lint", "yarn type-check", "yarn test"],
"after:bump": [
"before:init": [
"yarn lint",
"yarn type-check",
"yarn test"
],
"before:bump": [
"git fetch origin main",
"git checkout -b release-v${version} origin/main",
"git add .",
"git commit -m 'chore: update changelog and bump version to v${version}' || echo 'No changes to commit'",
"git checkout -b release-v${version} origin/main"
],
"after:bump": [
"git commit --allow-empty -m 'Release v${version}'",
"git push origin HEAD:release-v${version}",
"echo ${version} > .version"
]
Expand Down

0 comments on commit 51584a4

Please sign in to comment.