mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
build: v2.1.0
This commit is contained in:
parent
c82dd9a47e
commit
41db69ee7a
@ -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..."
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user