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

change the regex check for git origin #1058

Merged
merged 1 commit into from
May 28, 2018
Merged
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 scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ "$BRANCH" != "master" ]; then
exit
fi

if ! [[ "$ORIGIN" =~ ^https://github.com/tensorflow/tfjs-core ]]; then
if ! [[ "$ORIGIN" =~ tensorflow/tfjs-core ]]; then
echo "Error: Switch to the main repo (tensorflow/tfjs-core) before publishing."
exit
fi
Expand Down