<commit_before>
#!/usr/bin/env bash

set -u -e -o pipefail

# Use for BETA and RC releases
# Query Bazel for npm_package and ng_package rules
# 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.*\]", //modules/...) intersect kind(".*_package", //modules/...)'`
# build all npm packages in parallel
bazel build --config=release $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
done<commit_msg>build: add --config=release to publish.sh .publish actions to guarantee version stamping (#1320)<commit_after>
#!/usr/bin/env bash

set -u -e -o pipefail

# Use for BETA and RC releases
# Query Bazel for npm_package and ng_package rules
# 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.*\]", //modules/...) intersect kind(".*_package", //modules/...)'`
# build all npm packages in parallel
bazel build --config=release $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 --config=release -- ${packageLabel}.publish --access public --tag latest
done
{'fraction_non_alphanumeric': 0.11153846153846154, 'fraction_numerical': 0.002564102564102564, 'mean_word_length': 4.255892255892256, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3126881', 'n_tokens_mistral': 484, 'n_tokens_neox': 461, 'n_words': 193}