Skip to content

Commit

Permalink
[dsch] updating the check version script
Browse files Browse the repository at this point in the history
  • Loading branch information
DScheglov committed Dec 25, 2023
1 parent f6c0e08 commit a266b27
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions version.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
PACKAGE=$(npm pgk get name)@$(npm pgk get version)
PACKAGE=$(npm pkg get name | xargs)@$(npm pkg get version | xargs)
VERSION=$(npm view $PACKAGE version || echo "")
if [[ -n $VERSION ]]; then echo "Couldn't publish over existing version."; exit 1; fi

if [[ -n $VERSION ]]; then
echo "Couldn't publish over existing version."; exit 1;
else
echo "Publishing $PACKAGE";
fi

0 comments on commit a266b27

Please sign in to comment.