npmPublish.sh 172 Bytes
#!/usr/bin/env bash

cd $(dirname $0)/..
set -e

echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
chmod 0600 .npmrc

echo "Publishing..."
npm publish --tag $1