github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/release.sh (about) 1 #!/usr/bin/env bash 2 3 set -u -e -o pipefail 4 5 # TODO(vladmos): add bits for publishing go binaries to github 6 7 # Googlers: you should npm login using the go/npm-publish service: 8 # $ npm login --registry https://wombat-dressing-room.appspot.com 9 # Non-googlers: you should run this script with 10 # $ NPM_REGISTRY=https://registry.npmjs.org ./release.sh ... 11 REGISTRY=${NPM_REGISTRY:-https://wombat-dressing-room.appspot.com} 12 readonly NPM_ARGS=( 13 "--access public" 14 "--tag latest" 15 "--registry $REGISTRY" 16 # Uncomment for testing 17 # "--dry-run" 18 ) 19 for pkg in buildifier buildozer; do 20 bazel run --config=release //$pkg:npm_package.publish -- ${NPM_ARGS[@]} 21 done