Skip to content

Commit

Permalink
fix version bump > patch (#174)
Browse files Browse the repository at this point in the history
* fix version bump>patch
  • Loading branch information
siddy2181 authored Dec 5, 2023
1 parent 81e830c commit d47dd04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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,7 +28,8 @@ if [ "$current_branch" != "$default_branch" ]; then
npm publish --tag $tag
else
npm test;
npm version ${1-bump}
npm version ${1-patch}
echo "Publishing NPM version: ${1-patch}"

git push;
git push --tags;
Expand Down

0 comments on commit d47dd04

Please sign in to comment.