Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Update version to 0.13.10 and improve publish-npm script #1380

Merged
merged 1 commit into from
Nov 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -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};