diff --git a/package.json b/package.json index 7d9a93f80e..b50d96ded4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tensorflow/tfjs-core", - "version": "0.13.9", + "version": "0.13.10", "description": "Hardware-accelerated JavaScript library for machine intelligence", "private": false, "main": "dist/index.js", diff --git a/scripts/publish-npm.sh b/scripts/publish-npm.sh index b986c5281a..57e160d68c 100755 --- a/scripts/publish-npm.sh +++ b/scripts/publish-npm.sh @@ -28,6 +28,7 @@ set -e BRANCH=`git rev-parse --abbrev-ref HEAD` ORIGIN=`git config --get remote.origin.url` +CHANGES=`git status --porcelain` if [ "$BRANCH" != "master" ]; then echo "Error: Switch to the master branch before publishing." @@ -39,6 +40,13 @@ if ! [[ "$ORIGIN" =~ tensorflow/tfjs-core ]]; then exit fi +if [ ! -z "$CHANGES" ]; +then + echo "Make sure the master branch is clean. Found changes:" + echo $CHANGES + exit 1 +fi + yarn build-npm ./scripts/make-version # This is for safety in case you forgot to do 2). ./scripts/tag-version diff --git a/src/version.ts b/src/version.ts index 01d668c1df..21b410f577 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,5 +1,5 @@ /** @license See the LICENSE file. */ // This code is auto-generated, do not modify this file! -const version = '0.13.9'; +const version = '0.13.10'; export {version};