release: don't include dist when querying for publishable bazel packages (#23102)

PR Close #23102
This commit is contained in:
Alex Eagle 2018-03-30 15:00:47 -07:00 committed by Alex Rickabaugh
parent 85d3b591b6
commit 7a1c43733b
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ set -u -e -o pipefail
# Publish all packages in `dist/packages-dist` to npm (as next)
# Query Bazel for npm_package and ng_package rules with tags=["release-with-framework"]
for p in $(bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //...) intersect kind(".*_package", //...)'); do
for p in $(bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //...) intersect kind(".*_package", //...) except //dist/...'); do
bazel run -- $p.publish --access public --tag next
done