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

0.3.x: Update the publish-npm script to allow publishing from the release branch. #203

Merged
merged 1 commit into from
Feb 8, 2019
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
4 changes: 2 additions & 2 deletions scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ set -e
BRANCH=`git rev-parse --abbrev-ref HEAD`
ORIGIN=`git config --get remote.origin.url`

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

Expand Down