Skip to content

Commit

Permalink
feat: Auto generate CHANGELOG.md
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
doxiaodong committed Jul 4, 2018
1 parent a66e9ee commit 194f415
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ jobs:
command: |
npm i
npm run ci
- run:
name: Generate CHANGELOG.md
command: npm run changelog
- run:
name: Publish
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
npm version ${CIRCLE_TAG/release-v/}
npm publish
echo "Publish success!!"
- run:
name: Push to Github
command: |
Expand All @@ -75,4 +77,4 @@ workflows:
branches:
ignore: /.*/
tags:
only: /release-v.*/
only: /v.*/
2 changes: 1 addition & 1 deletion git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -o errexit

git config --global user.name "circle-bot"
git config --global user.email "bot@darlin.me"
git config --global user.email "duxiaodong@darlin.me"

git status
git commit -am"bump version"
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,28 @@
"types": "lib/index.d.ts",
"files": [
"lib",
"src"
"src",
"CHANGELOG.md"
],
"scripts": {
"clean": "rm -rf coverage && rm -rf lib",
"codecov": "cat ./coverage/lcov.info | codecov",
"ci": "npm run clean && tsc -d && npm run test",
"test": "jest --coverage"
"test": "jest --coverage",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"author": "doxiaodong",
"license": "MIT",
"devDependencies": {
"@types/jest": "^23.1.3",
"@types/react": "^16.4.4",
"@types/jest": "^23.1.4",
"@types/react": "^16.4.6",
"codecov": "^3.0.2",
"conventional-changelog": "^2.0.1",
"jest": "^23.2.0",
"mobx": "^5.0.3",
"mobx-react": "^5.2.3",
"react": "^16.4.1",
"ts-jest": "^22.4.6",
"ts-jest": "^23.0.0",
"typescript": "^2.9.2"
},
"peerDependencies": {
Expand Down

0 comments on commit 194f415

Please sign in to comment.