Skip to content

Commit 821cd1a

Browse files
committed
chore(system): update release scripts
1 parent 8143c40 commit 821cd1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"commitmsg": "node distribution/cli.js --edit",
1818
"changelog": "conventional-changelog --preset angular --infile changelog.md --same-file --output-unreleased",
1919
"push": "git push && git push --tags && hub release create \"v$(cat .git/RELEASE_VERSION.tmp)\" --message=\"v$(cat .git/RELEASE_VERSION.tmp)\n$(cat .git/COMMITMSG.tmp)\" && npm publish && rm .git/RELEASE_VERSION.tmp && rm .git/COMMITMSG.tmp",
20-
"release": "npm version $(conventional-recommended-bump -p angular)",
2120
"test": "eslint *.js && jsonlint-cli *.json && node distribution/cli.js --from=HEAD~1",
2221
"preversion": "npm run build && npm test",
23-
"version": "npm run changelog && git add . && echo \"$(conventional-changelog -p angular)\" > .git/COMMITMSG.tmp",
24-
"postversion": "echo $(git log -1 --pretty=%B HEAD^..HEAD) > .git/RELEASE_VERSION.tmp && git tag -d v$(cat .git/RELEASE_VERSION.tmp) && git commit --amend -m \"chore(release): $(cat .git/RELEASE_VERSION.tmp)\n\n$(cat .git/COMMITMSG.tmp)\" && git tag -a v$(cat .git/RELEASE_VERSION.tmp) -m \"$(cat .git/COMMITMSG.tmp)\""
22+
"release": "npm version --no-git-tag-version $(conventional-recommended-bump -p angular)",
23+
"version": "npm run changelog && git add .",
24+
"postversion": "git commit -m \"chore(release): v$npm_package_version\n$(conventional-changelog -p angular)\" && git tag -a v$npm_package_version -m \"$(conventional-changelog -p angular)\""
2525
},
2626
"config": {
2727
"commitizen": {

0 commit comments

Comments
 (0)