ToolJet/docs/build-latest-version.sh

19 lines
375 B
Bash
Raw Normal View History

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-11-13 10:54:25 +00:00
# Ensure versions.json exists
if [ ! -f "$VERSIONS_FILE" ]; then
echo "Error: $VERSIONS_FILE not found."
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
# Install dependencies and build the project
2023-12-27 10:30:02 +00:00
npm i && npm run build
exec "$@"