build: v2.1.0

This commit is contained in:
Mohamed Marrouchi 2024-12-10 12:39:49 +01:00
parent c82dd9a47e
commit 41db69ee7a
2 changed files with 14 additions and 3 deletions

View File

@ -28,13 +28,24 @@ elif [[ "$RELEASE_TYPE" == "minor" ]]; then
fi fi
# Retrieve the new version from package.json # 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 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 exit 1
fi 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 # Commit and push changes
echo "Committing and pushing changes..." echo "Committing and pushing changes..."

View File

@ -5,7 +5,7 @@
"frontend", "frontend",
"widget" "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.", "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", "author": "Hexastack",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",