From 830e821ced75c06fa7a3669a0862d2a4261a5959 Mon Sep 17 00:00:00 2001 From: Joshua Date: Wed, 16 Oct 2024 03:29:02 +0200 Subject: [PATCH] refactor: update release configuration to use escaped version in release notes --- .release-it.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.release-it.js b/.release-it.js index 551659d..d01611e 100644 --- a/.release-it.js +++ b/.release-it.js @@ -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 --from=${latestTag} --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,