mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-07 03:56:46 +03:00
feat: extract version from package.json and set as environment variable
This commit is contained in:
@@ -173,6 +173,12 @@ else
|
|||||||
fi
|
fi
|
||||||
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
|
# Start the application
|
||||||
echo "Starting Gitea Mirror..."
|
echo "Starting Gitea Mirror..."
|
||||||
exec bun ./dist/server/entry.mjs
|
exec bun ./dist/server/entry.mjs
|
||||||
|
|||||||
Reference in New Issue
Block a user