Skip to content

Commit

Permalink
fix: validate that no whitespaces are present
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Aug 19, 2024
1 parent 34cfc76 commit 9e206b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .ci/publishNpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ if [ -z "$VERSION" ]; then
exit 1
fi

if printf -- "$VERSION" | grep -q " "; then
echo '$VERSION must not contain whitespaces'
exit 1
fi

# set the version of all packages in the workspace to $VERSION
npm version -ws $VERSION

Expand Down

0 comments on commit 9e206b2

Please sign in to comment.