Skip to content

Commit

Permalink
Disable re-publishing for this repository
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarex committed Apr 15, 2016
1 parent a3878cc commit 5f04f46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ else
echo "Publishing"
./node_modules/.bin/node-pre-gyp publish ${NPM_FLAGS}
elif [[ ${COMMIT_MESSAGE} =~ "[republish binary]" ]]; then
echo "Re-Publishing"
./node_modules/.bin/node-pre-gyp unpublish publish ${NPM_FLAGS}
echo "*** Error: Republishing is disallowed for this repository"
exit 1
#./node_modules/.bin/node-pre-gyp unpublish publish ${NPM_FLAGS}
else
echo "Skipping publishing"
fi;
Expand Down

0 comments on commit 5f04f46

Please sign in to comment.