Skip to content

Commit

Permalink
refactor: update release configuration to use escaped version in rele…
Browse files Browse the repository at this point in the history
…ase notes
  • Loading branch information
jqshuv committed Oct 16, 2024
1 parent 3caf784 commit a8ad439
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 @@ -7,7 +7,7 @@ module.exports = {
hooks: {
"before:bump": "node scripts/change-api-version.js ${version}",
// edit the CHANGELOG.md file before the release with sed 's/...main/...v\\/${version}/g'
"before:release": "pnpx changelogen@latest --output=CHANGELOG.md && sed -i '' 's/...main/...v\\/${version}/g' CHANGELOG.md && git add CHANGELOG.md",
"before:release": "pnpx changelogen@latest --from=${latestTag} --output=CHANGELOG.md && sed -i '' 's/...main/...v\\/${version}/g' CHANGELOG.md && git add CHANGELOG.md",
},
git: {
commit: true,
Expand All @@ -24,7 +24,7 @@ module.exports = {
github: {
release: true,
releaseName: "🚀 Release ${version}",
releaseNotes: "pnpx changelogen@latest | tail -n +4 | sed 's/...main/...v\\/${version}/g'",
releaseNotes: "pnpx changelogen@latest --from=${latestTag} | tail -n +4 | sed 's/...main/...v\\/${version}/g'",
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 a8ad439

Please sign in to comment.