diff --git a/package.json b/package.json index 6871c235ad..1be3118645 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dev": "node bin/vuepress dev docs", "build": "node bin/vuepress build docs", "lint": "eslint --fix --ext .js,.vue bin/ lib/ test/", - "prepublishOnly": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s", + "changelog": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s", "release": "/bin/bash scripts/release.sh", "test": "node test/prepare.js && jest --config test/jest.config.js" }, diff --git a/scripts/release.sh b/scripts/release.sh index f4f3e2c507..a1855b8a10 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -28,7 +28,7 @@ select VERSION in patch minor major "Specific Version" echo Releasing ${NEW_VERSION} ... # github release - npm run prepublishOnly + npm run changelog git add CHANGELOG.md git commit -m "chore: changelog" git push