Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix version bump > patch #174

Merged
merged 3 commits into from
Dec 5, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "npm version ${1-patch}"
siddy2181 marked this conversation as resolved.
Show resolved Hide resolved

git push;
git push --tags;
Expand Down