- 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

View File

@@ -1,9 +1,10 @@
{
"name": "cordova-plugin-advanced-http",
"version": "1.6.1",
"version": "1.6.2",
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
"scripts": {
"test": "./scripts/build-test-app.sh && ./scripts/test.sh --ios --emulator"
"test": "./scripts/build-test-app.sh && ./scripts/test.sh --ios --emulator",
"release": "npm run test && ./scripts/release.sh"
},
"cordova": {
"id": "cordova-plugin-advanced-http",

View File

@@ -1,10 +1,13 @@
#!/usr/bin/env bash
set -e
VERSION=$(node -e "console.log(require('./package.json').version)")
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