Skip to content

Commit

Permalink
refactor: update release configuration to use a script for before:bum…
Browse files Browse the repository at this point in the history
…p hook
  • Loading branch information
jqshuv committed Oct 16, 2024
1 parent ec9d405 commit 147d705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .release-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

module.exports = {
hooks: {
"before:init": "echo \"${version}\"",
"before:bump": "echo ${version}",
"before:bump": "node scripts/change-api-version.js ${version}",
"after:bump": "pnpx auto-changelog -p && git add CHANGELOG.md",
},
git: {
Expand All @@ -24,6 +23,7 @@ module.exports = {
github: {
release: true,
releaseName: "🚀 Release ${version}",
releaseNotes: "echo \"${version}\" > .release-version",
comments: {
submit: false,
issue: ":rocket: _This issue has been resolved in v${version}. See [${releaseName}](${releaseUrl}) for release notes._",
Expand Down

0 comments on commit 147d705

Please sign in to comment.