Skip to content

Commit

Permalink
fixing script
Browse files Browse the repository at this point in the history
  • Loading branch information
hayna-foursys committed Apr 17, 2024
1 parent c5a33f5 commit d9e82f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ if git log "${LAST_TAG}..HEAD" --format='%s' | grep -q -E '^major:'; then
RELEASE_TYPE="major"
elif git log "${LAST_TAG}..HEAD" --format='%s' | grep -q -E '^breaking:'; then
RELEASE_TYPE="minor"
elif git log "${LAST_TAG}..HEAD" --format='%s' | grep -q -i -E '^fixing|^adding|^bump version|feat|fix|perf|refactor|revert'; then
elif git log "${LAST_TAG}..HEAD" --format='%s' | grep -q -i -E '^fix|^fixing|^adding|^bump version|feat|perf|refactor|revert'; then
RELEASE_TYPE="patch"
fi

npx standard-version --release-as $RELEASE_TYPE

if [ "$LAST_TAG" == "$(git describe --tags --abbrev=0)" ]; then
npx standard-version --release-as patch
fi

NATDS_VERSION=$(cat ./version.txt)

envman add --key NATDS_VERSION --value "$NATDS_VERSION"
Expand Down

0 comments on commit d9e82f9

Please sign in to comment.