Skip to content

Commit

Permalink
build: remove problematic yarn prefix for running bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko committed Oct 31, 2018
1 parent 257ac83 commit 3041240
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/release/publish-latest
Expand Up @@ -7,12 +7,12 @@ set -u -e -o pipefail
# Publish them to npm (tagged next)

# query for all npm packages to be released as part of the framework release
NPM_PACKAGE_LABELS=`yarn bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
NPM_PACKAGE_LABELS=`bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
# build all npm packages in parallel
yarn bazel build $NPM_PACKAGE_LABELS
bazel build $NPM_PACKAGE_LABELS
# publish all packages in sequence to make it easier to spot any errors or warnings
for packageLabel in $NPM_PACKAGE_LABELS; do
echo "publishing $packageLabel"
yarn bazel run -- ${packageLabel}.publish --access public --tag latest
bazel run -- ${packageLabel}.publish --access public --tag latest
done

6 changes: 3 additions & 3 deletions scripts/release/publish-next
Expand Up @@ -7,11 +7,11 @@ set -u -e -o pipefail
# Publish them to npm (tagged next)

# query for all npm packages to be released as part of the framework release
NPM_PACKAGE_LABELS=`yarn bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
NPM_PACKAGE_LABELS=`bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
# build all npm packages in parallel
yarn bazel build $NPM_PACKAGE_LABELS
bazel build $NPM_PACKAGE_LABELS
# publish all packages in sequence to make it easier to spot any errors or warnings
for packageLabel in $NPM_PACKAGE_LABELS; do
echo "publishing $packageLabel"
yarn bazel run -- ${packageLabel}.publish --access public --tag next
bazel run -- ${packageLabel}.publish --access public --tag next
done

0 comments on commit 3041240

Please sign in to comment.