Skip to content

Commit 3585d95

Browse files
committed
chore: update release and changelog script
1 parent 79b87a2 commit 3585d95

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build/releaser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,15 @@ inquirer
5757
git commit --no-verify -m "${buildMessage}"
5858
npm version ${version} --commit-hooks false -m "${releaseMessage}"
5959
npm run release:notes
60-
npm run changelog
6160
echo "Pushing to git"
6261
git push origin refs/tags/v${version}
6362
git push origin master
6463
echo "Publishing to npm"
6564
npm publish
65+
npm run changelog
66+
git add CHANGELOG.md
67+
git commit --no-verify -m "chore: update changelog"
68+
git push origin master
6669
echo "Release successful."
6770
`)
6871
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"prettier": "prettier --no-semi --single-quote --write \"{{platform,__test__}/**/*.js,samples/app/*.js}\"",
1717
"release": "node build/releaser.js",
1818
"release:notes": "node build/gen-release-notes.js",
19-
"changelog": "conventional-changelog --infile CHANGELOG.md --same-file --preset angular",
19+
"changelog": "conventional-changelog --release-count 0 --outfile CHANGELOG.md --preset angular",
2020
"commit": "git-cz"
2121
},
2222
"repository": {

0 commit comments

Comments
 (0)