File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @tensorflow/tfjs" ,
3
- "version" : " 0.0.4 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"description" : " An open-source machine learning framework." ,
5
5
"private" : false ,
6
6
"main" : " dist/index" ,
24
24
"build-npm" : " ./scripts/build-npm.sh"
25
25
},
26
26
"dependencies" : {
27
- "@tensorflow/tfjs-core" : " 0.0.1 " ,
27
+ "@tensorflow/tfjs-core" : " 0.0.2 " ,
28
28
"@tensorflow/tfjs-layers" : " 0.0.5"
29
29
}
30
30
}
Original file line number Diff line number Diff line change 17
17
# Before you run this script, do this:
18
18
# 1) Update the version in package.json
19
19
# 2) Run ./scripts/make-version from the base dir of the project.
20
- # 3) Commit to the master branch.
20
+ # 3) Run `yarn` to update `yarn.lock`, in case you updated dependencies
21
+ # 4) Commit to the master branch.
21
22
22
23
# Then:
23
- # 4) Run this script as `./scripts/publish-npm.sh` from the project base dir.
24
+ # 5) Checkout the master branch of this repo.
25
+ # 6) Run this script as `./scripts/publish-npm.sh` from the project base dir.
24
26
25
27
set -e
26
28
29
+ BRANCH=` git rev-parse --abbrev-ref HEAD`
30
+ ORIGIN=` git config --get remote.origin.url`
31
+
32
+ if [ " $BRANCH " != " master" ]; then
33
+ echo " Error: Switch to the master branch before publishing."
34
+ exit
35
+ fi
36
+
37
+ if [ " $ORIGIN " != " https://github.com/tensorflow/tfjs.git" ]; then
38
+ echo " Error: Switch to the main repo (tensorflow/tfjs) before publishing."
39
+ exit
40
+ fi
41
+
27
42
yarn build-npm
28
43
./scripts/make-version # This is for safety in case you forgot to do 2).
29
44
npm publish
Original file line number Diff line number Diff line change 1
1
/** @license See the LICENSE file. */
2
2
3
3
// This code is auto-generated, do not modify this file!
4
- const version = '0.0.4 ' ;
4
+ const version = '0.0.5 ' ;
5
5
export { version } ;
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
5
- " @tensorflow/tfjs-core@0.0.1 " :
6
- version "0.0.1 "
7
- resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.0.1 .tgz#087be00020ed2e581c9e35dea2ca8dd2be537707 "
5
+ " @tensorflow/tfjs-core@0.0.2 " :
6
+ version "0.0.2 "
7
+ resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.0.2 .tgz#3275ec114db4cc89ca729ffad67a25849236aa61 "
8
8
dependencies :
9
9
seedrandom "~2.4.3"
10
10
utf8 "~2.1.2"
You can’t perform that action at this time.
0 commit comments