File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 2727 },
2828 "devDependencies" : {
2929 "eslint" : " ^2.9.0" ,
30+ "github-publish-release" : " ^1.2.3" ,
3031 "ip-address" : " ^5.8.0" ,
3132 "istanbul" : " ^0.4.3" ,
3233 "mocha" : " ^2.4.5"
5051 "coverage" : " istanbul cover _mocha -- -R spec --timeout 5000 --recursive" ,
5152 "coverage:check" : " istanbul check-coverage" ,
5253 "lint" : " eslint -c .eslintrc ." ,
53- "prepublish" : " npm run lint" ,
54- "release:major" : " npm run lint && npm test && npm version major && npm publish && git push --follow-tags" ,
55- "release:minor" : " npm run lint && npm test && npm version minor && npm publish && git push --follow-tags" ,
56- "release:patch" : " npm run lint && npm test && npm version patch && npm publish && git push --follow-tags" ,
54+ "release" : " scripts/release" ,
5755 "mocha" : " mocha -R spec --recursive --bail" ,
5856 "test" : " npm run lint && npm run coverage && npm run coverage:check"
5957 }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Exit immediately if a pipeline returns non-zero status
4+ # http://www.gnu.org/software/bash/manual/bashref.html#The-Set-Builtin
5+ set -e
6+
7+ npm run lint
8+ npm test
9+
10+ if [ -n " $npm_config_major " ]; then SEMVER=" major"
11+ elif [ -n " $npm_config_patch " ]; then SEMVER=" patch"
12+ else SEMVER=" minor" ; fi
13+
14+ npm version $SEMVER
15+ github-publish-release
16+ git push --follow-tags
17+ npm publish
You can’t perform that action at this time.
0 commit comments