Skip to content

Commit

Permalink
fix: Add error handling for npm pack command Update pack.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
voronor authored Dec 15, 2024
1 parent 535b54d commit fc7d2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/workflow/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dist_tag() {
}

cd contracts
TARBALL="$(npm pack | tee /dev/stderr | tail -1)"
TARBALL="$(npm pack | tee /dev/stderr | tail -1)" || { echo "npm pack failed"; exit 1; }
echo "tarball_name=$TARBALL" >> $GITHUB_OUTPUT
echo "tarball=$(pwd)/$TARBALL" >> $GITHUB_OUTPUT
echo "tag=$(dist_tag)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit fc7d2c2

Please sign in to comment.