2023-12-27 10:30:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
2024-11-13 10:54:25 +00:00
|
|
|
VERSIONS_FILE="versions.json"
|
2024-07-16 18:28:40 +00:00
|
|
|
|
2024-11-13 10:54:25 +00:00
|
|
|
# Ensure versions.json exists
|
|
|
|
|
if [ ! -f "$VERSIONS_FILE" ]; then
|
|
|
|
|
echo "Error: $VERSIONS_FILE not found."
|
2024-07-16 18:28:40 +00:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2024-11-13 10:54:25 +00:00
|
|
|
# Output existing versions from versions.json for reference
|
|
|
|
|
echo "Using versions from $VERSIONS_FILE:"
|
|
|
|
|
jq . "$VERSIONS_FILE"
|
2023-12-27 10:30:02 +00:00
|
|
|
|
2024-07-16 18:28:40 +00:00
|
|
|
# Install dependencies and build the project
|
2023-12-27 10:30:02 +00:00
|
|
|
npm i && npm run build
|
|
|
|
|
|
2024-07-16 19:25:26 +00:00
|
|
|
exec "$@"
|