commit
1b191f7104
|
@ -27,7 +27,8 @@
|
||||||
"url": "http://github.com/runk/node-chardet/issues"
|
"url": "http://github.com/runk/node-chardet/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha -R spec --recursive"
|
"test": "mocha -R spec --recursive",
|
||||||
|
"release": "scripts/release"
|
||||||
},
|
},
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"engine": {
|
"engine": {
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit immediately if a pipeline returns non-zero status
|
||||||
|
# http://www.gnu.org/software/bash/manual/bashref.html#The-Set-Builtin
|
||||||
|
set -e
|
||||||
|
|
||||||
|
npm run lint
|
||||||
|
npm test
|
||||||
|
|
||||||
|
if [ -n "$npm_config_major" ]; then SEMVER="major"
|
||||||
|
elif [ -n "$npm_config_patch" ]; then SEMVER="patch"
|
||||||
|
else SEMVER="minor"; fi
|
||||||
|
|
||||||
|
npm version $SEMVER
|
||||||
|
github-publish-release
|
||||||
|
git push --follow-tags
|
||||||
|
npm publish
|
Loading…
Reference in New Issue