Skip to content

Commit

Permalink
chore(ci): Cleaner log when publishing, unless failure (#10919)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jul 5, 2024
1 parent 7563a9d commit 421a843
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/scripts/publish_canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ args+=(
echo 'n' \
| yarn lerna publish "${args[@]}" 2>&1 \
> publish_output
echo "Publish output:"
echo "---------------\n"
cat publish_output
echo "---------------\n"
cat publish_output \
| grep '\-canary\.' \
| tail -n 1 \
Expand All @@ -47,7 +43,12 @@ cat publish_output \
> canary_version

if [ ! -s canary_version ]; then
echo "The canary_version file is empty or does not exist. Exiting."
echo "The canary_version file is empty or does not exist."
echo "'yarn lerna publish' output was:"
echo "---------------\n"
cat publish_output
echo "---------------\n"

exit 1
fi

Expand Down

0 comments on commit 421a843

Please sign in to comment.