Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Add GPU publishing to the publish-npm script.#240

Merged
nsthorat merged 5 commits intomasterfrom
publish
Apr 2, 2019
Merged

Add GPU publishing to the publish-npm script.#240
nsthorat merged 5 commits intomasterfrom
publish

Conversation

@nsthorat
Copy link

@nsthorat nsthorat commented Apr 1, 2019

This change is Reviewable

@nsthorat nsthorat requested a review from nkreeger April 1, 2019 17:53
# Publish the CPU package
npm publish
# Publish the GPU package
ls tensorflow-tfjs-node-gpu* | xargs npm publish
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious - does this prevent publishing all tfjs-node-gpu* packages? Once you run this script you have the generated tarballs lying around in the directory.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some protection for non-1 tarballs.

Nikhil Thorat added 3 commits April 2, 2019 12:57
Copy link
Contributor

@nkreeger nkreeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @nkreeger and @nsthorat)


scripts/publish-npm.sh, line 33 at r2 (raw file):

Quoted 4 lines of code…
# if [ "$BRANCH" != "master" ] && [ "$BRANCH" != "0.3.x" ]; then
#   echo "Error: Switch to the master or a release branch before publishing."
#   exit
# fi

Does this need to be cleaned up?

Copy link
Author

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @nkreeger)


scripts/publish-npm.sh, line 33 at r2 (raw file):

Previously, nkreeger (Nick Kreeger) wrote…
# if [ "$BRANCH" != "master" ] && [ "$BRANCH" != "0.3.x" ]; then
#   echo "Error: Switch to the master or a release branch before publishing."
#   exit
# fi

Does this need to be cleaned up?

old diff, this is back

@nsthorat nsthorat merged commit 3e1b1c7 into master Apr 2, 2019
@nsthorat nsthorat deleted the publish branch April 2, 2019 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants