- improved release process (using npm script)

- updated version number
This commit is contained in:
Sefa Ilkimen
2017-10-19 17:56:30 +02:00
parent a8f1d2b1c2
commit d136d90893
2 changed files with 7 additions and 3 deletions

13
scripts/release.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
pushd $ROOT
VERSION=$(node -e "console.log(require('./package.json').version)")
./scripts/update-tough-cookie.sh
node ./scripts/update-plugin-xml.js $VERSION
git commit -a -m "release v$VERSION"
git tag "v$VERSION"
npm publish
popd