Add frontend version

This commit is contained in:
lowcarbdev
2025-11-15 15:08:43 -07:00
parent 557ad1fc46
commit 848bf84341
4 changed files with 40 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# CI script to update the frontend version
# Usage: ./update-version.sh <version>
# Example: ./update-version.sh 1.2.3
if [ -z "$1" ]; then
echo "Usage: $0 <version>"
echo "Example: $0 1.2.3"
exit 1
fi
VERSION=$1
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VERSION_FILE="$SCRIPT_DIR/version.json"
echo "Updating version to: $VERSION"
echo "{\"version\": \"$VERSION\"}" | jq '.' > "$VERSION_FILE"
echo "Version updated successfully in $VERSION_FILE"