From 3e0ee374c9950851df8e857bd518f4881f96145d Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 30 Jan 2021 13:46:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=AF=B9changelog=E7=9A=84ht?= =?UTF-8?q?ml=E5=AF=B9version.json=E7=9A=84=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/utils/updateChangeLog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/publish/utils/updateChangeLog.js b/publish/utils/updateChangeLog.js index 91a755d0..a966a0ca 100644 --- a/publish/utils/updateChangeLog.js +++ b/publish/utils/updateChangeLog.js @@ -44,8 +44,7 @@ module.exports = async newVerNum => { desc: version.desc, }) version.version = newVerNum - version.desc = newChangeLog - // version.desc = newMDChangeLog.replace(/(?:^|(\n))#{1,6} (.+)\n/g, '$1$2').trim() + version.desc = newMDChangeLog.replace(/(?:^|(\n))#{1,6} (.+)\n/g, '$1$2').trim() pkg.version = newVerNum console.log(chalk.blue('new version: ') + chalk.green(newVerNum))