Skip to content

Commit

Permalink
fix version bump>patch
Browse files Browse the repository at this point in the history
  • Loading branch information
siddy2181 committed Dec 5, 2023
1 parent 207ed5b commit fac9e2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/sh

# This script will determine the type of release based on the git branch. When the default branch is used, it will be a `patch` that's published to npm under the `latest` dist-tag. Any other branch will be a `prelease` that's published to npm under the `alpha` dist-tag.
bump='patch'
tag='latest'

set -e;

Expand Down Expand Up @@ -30,8 +28,8 @@ if [ "$current_branch" != "$default_branch" ]; then
npm publish --tag $tag
else
npm test;
npm version ${1-$bump}
echo "npm version ${1-$bump}"
npm version ${1-patch}
echo "npm version ${1-patch}"

git push;
git push --tags;
Expand Down

0 comments on commit fac9e2c

Please sign in to comment.