Skip to content

Commit

Permalink
build: v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marrouchi committed Dec 10, 2024
1 parent c82dd9a commit 41db69e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,24 @@ elif [[ "$RELEASE_TYPE" == "minor" ]]; then
fi

# Retrieve the new version from package.json
NEW_VERSION=$(jq -r '.version' "$ROOT_DIR/package.json")
NEW_VERSION=$(jq -r '.version' "$ROOT_DIR/api/package.json")

if [ -z "$NEW_VERSION" ]; then
echo "Failed to retrieve the version from package.json."
echo "Failed to retrieve the version from api/package.json."
exit 1
fi

# Function to update version in a package.json
update_version() {
local file=$1
echo "Updating version in $file to $NEW_VERSION"
jq --arg newVersion "$NEW_VERSION" '.version = $newVersion' "$file" > tmp.$$.json && mv tmp.$$.json "$file"
}

# Update root package.json
if [[ -f "$ROOT_DIR/package.json" ]]; then
update_version "$ROOT_DIR/package.json"
fi

# Commit and push changes
echo "Committing and pushing changes..."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"frontend",
"widget"
],
"version": "2.0.17",
"version": "2.1.0",
"description": "Hexabot is a solution for creating and managing chatbots across multiple channels, leveraging AI for advanced conversational capabilities. It provides a user-friendly interface for building, training, and deploying chatbots with integrated support for various messaging platforms.",
"author": "Hexastack",
"license": "AGPL-3.0-only",
Expand Down

0 comments on commit 41db69e

Please sign in to comment.