Skip to content

Commit

Permalink
fix npm publish (#15)
Browse files Browse the repository at this point in the history
* use yarn

* Update circle-publish-npm

* publish scripts
  • Loading branch information
ferozco authored Jun 5, 2018
1 parent 4ce898b commit 3e9b868
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/circle-publish-npm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ if [ -z ${CIRCLECI+x} ]; then
exit 1
fi

# Defend against yarn adding enviroment variables for config https://github.com/yarnpkg/yarn/issues/4475
unset $(env | awk -F= '$1 ~ /^npm_/ {print $1}')

# Generate npmrc, ensure it is readable
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
chmod +r .npmrc
Expand Down

0 comments on commit 3e9b868

Please sign in to comment.