Skip to content

Commit

Permalink
fixes for CircleCI npm publish script
Browse files Browse the repository at this point in the history
Summary: i guess `npm publish` only thinks it's a tarball if it looks like a relative path, otherwise it assumes it's a github repo. also had to fix the executable permission.

Reviewed By: fishythefish

Differential Revision: D7626924

fbshipit-source-id: 0432b1f3da38dc592cb171800a78ecfd0f1d2431
  • Loading branch information
mroch authored and facebook-github-bot committed Apr 19, 2018
1 parent 13ece69 commit 24cfe90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/deploy_npm.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ if [[ "$CIRCLE_TAG" = "" ]]; then exit 0; fi
if [ -f ~/.npmrc ]; then mv ~/.npmrc ~/.npmrc.bak; fi
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc

echo "Publishing flow-parser-bin@${TAG_V}";
npm publish "dist/npm-flow-parser-bin.tgz";
echo "Publishing flow-parser-bin";
npm publish ./dist/npm-flow-parser-bin.tgz;

echo "Publishing flow-parser@${TAG_V}";
npm publish "dist/npm-flow-parser.tgz";
echo "Publishing flow-parser";
npm publish ./dist/npm-flow-parser.tgz;

if [ -f ~/.npmrc.bak ]; then mv ~/.npmrc.bak ~/.npmrc; fi

0 comments on commit 24cfe90

Please sign in to comment.