fix(release): omit comments when archiving changelog

This commit is contained in:
Tunglies
2026-11-02 18:22:34 +08:00
parent 3f39c2ceca
commit de15283ef6
+4 -1
View File
@@ -41,7 +41,10 @@ fi
tmpfile=$(mktemp)
{
cat "$CHANGELOG"
node -e '
const fs = require("node:fs");
process.stdout.write(fs.readFileSync(process.argv[1], "utf8").replace(/<!--[\s\S]*?-->/g, "").trimStart());
' "$CHANGELOG"
echo
echo ""
if [ -f "$HISTORY" ]; then