chardet/scripts/release

18 lines
379 B
Plaintext
Raw Normal View History

2017-10-16 00:49:03 +00:00
#!/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