Files
eveship.fit.react/build.sh
2026-01-07 17:28:17 +01:00

48 lines
1.3 KiB
Bash

#!/bin/bash
# ============================================================================
# CONFIGURATION - Modify these for your project
# ============================================================================
# Docker registry and image name
DOCKER_REPO="docker.site.quack-lab.dev"
IMAGE_NAME="eveshipfit-react"
# ============================================================================
# INSTALL DEPENDENCIES
# ============================================================================
echo "Installing dependencies..."
bun install --frozen-lockfile
if [ $? -ne 0 ]; then
echo "Error installing dependencies"
exit 1
fi
# ============================================================================
# BUILD PACKAGE
# ============================================================================
echo "Building React package..."
bun run build
if [ $? -ne 0 ]; then
echo "Error building React package"
exit 1
fi
# ============================================================================
# PUBLISH PACKAGE
# ============================================================================
echo "Publishing package to registry..."
npm publish --registry https://git.site.quack-lab.dev/api/packages/dave/npm/
if [ $? -ne 0 ]; then
echo "Error publishing package"
exit 1
fi
echo "React package published successfully!"