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