This repository was archived by the owner on May 1, 2020. It is now read-only.
File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 19
19
"build" : " npm run clean && tsc" ,
20
20
"build-and-test" : " npm run build && npm run test" ,
21
21
"changelog" : " ./node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s" ,
22
+ "changelog-and-commit" : " npm run changelog && node ./scripts/commit-changelog.js" ,
22
23
"clean" : " rimraf ./dist" ,
23
24
"github-release" : " node ./scripts/create-github-release.js" ,
24
25
"lint" : " tslint -c ./tslint.json --project ./tsconfig.json" ,
25
26
"nightly" : " npm run build && node ./scripts/publish-nightly.js" ,
26
- "release" : " npm run build && npm run test && npm run changelog && npm version patch && npm run github-release && npm publish" ,
27
+ "release" : " npm run build && npm run test && npm run changelog-and-commit && npm version patch && npm run github-release && npm publish" ,
27
28
"test" : " jasmine JASMINE_CONFIG_PATH=src/spec/jasmine.config.json || true" ,
28
29
"watch" : " npm run clean && tsc --watch"
29
30
},
Original file line number Diff line number Diff line change
1
+ var execSync = require ( 'child_process' ) . execSync ;
2
+
3
+ function main ( ) {
4
+ try {
5
+ execSync ( 'git add ./CHANGELOG.md' ) ;
6
+ execSync ( 'git commit -m "chore(changelog): update changelog for release"' ) ;
7
+ } catch ( ex ) {
8
+ console . log ( 'Failed to complete commiting changelog - ' , ex . message ) ;
9
+ process . exit ( 1 ) ;
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments