Skip to content

Commit

Permalink
fool-proof publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Sep 25, 2024
1 parent 821995e commit b1e5eab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

version=$1

if [ -z "$version" ]; then
echo "Version is required"
exit 1
fi

echo "Publishing $version"

sed -i -e "s/\"version\": \".*\"/\"version\": \"$version\"/g" package.json
Expand Down

0 comments on commit b1e5eab

Please sign in to comment.