build: use bazel version from node modules (#26691)
* No longer depends on a custom CircleCI docker image that comes with Bazel pre-installed. Since Bazel is now available through NPM, we should be able to use the version from `@bazel/bazel` in order to enforce a consistent environment on CI and locally. * This also reduces the amount of packages that need to be published (ngcontainer is removed) PR Close #26691
This commit is contained in:

committed by
Matias Niemelä

parent
cd444bc2ba
commit
c44b93253c
@ -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=`bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
|
||||
NPM_PACKAGE_LABELS=`yarn bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
|
||||
# build all npm packages in parallel
|
||||
bazel build $NPM_PACKAGE_LABELS
|
||||
yarn 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"
|
||||
bazel run -- ${packageLabel}.publish --access public --tag latest
|
||||
yarn bazel run -- ${packageLabel}.publish --access public --tag latest
|
||||
done
|
||||
|
||||
|
@ -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=`bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
|
||||
NPM_PACKAGE_LABELS=`yarn bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //packages/...) intersect kind(".*_package", //packages/...)'`
|
||||
# build all npm packages in parallel
|
||||
bazel build $NPM_PACKAGE_LABELS
|
||||
yarn 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"
|
||||
bazel run -- ${packageLabel}.publish --access public --tag next
|
||||
yarn bazel run -- ${packageLabel}.publish --access public --tag next
|
||||
done
|
||||
|
Reference in New Issue
Block a user