2018-02-22 15:07:17 -05:00
#!/usr/bin/env bash
2018-03-30 16:48:47 -04:00
set -u -e -o pipefail
2018-02-22 15:07:17 -05:00
# Use for BETA and RC releases
# Publish all packages in `dist/packages-dist` to npm (as next)
2018-03-30 16:48:47 -04:00
# Query Bazel for npm_package and ng_package rules with tags=["release-with-framework"]
2018-03-30 18:00:47 -04:00
for p in $(bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //...) intersect kind(".*_package", //...) except //dist/...'); do
2018-03-30 16:48:47 -04:00
bazel run -- $p.publish --access public --tag next
done
(cd dist/packages-dist; for p in language-service service-worker; do npm publish --access public --tag next $p; done)