feat: extract version from package.json and set as environment variable

This commit is contained in:
Arunavo Ray
2025-05-22 19:48:42 +05:30
parent 615ebd5079
commit 3136a2120d

View File

@@ -173,6 +173,12 @@ else
fi
fi
# Extract version from package.json and set as environment variable
if [ -f "package.json" ]; then
export npm_package_version=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4)
echo "Setting application version: $npm_package_version"
fi
# Start the application
echo "Starting Gitea Mirror..."
exec bun ./dist/server/entry.mjs