Files
eveship.fit.data/build.sh
2026-01-07 17:27:54 +01:00

54 lines
1.6 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-data"
# ============================================================================
# INSTALL DEPENDENCIES
# ============================================================================
echo "Installing dependencies..."
bun install --frozen-lockfile
if [ $? -ne 0 ]; then
echo "Error installing dependencies"
exit 1
fi
# ============================================================================
# BUILD PACKAGE
# ============================================================================
echo "Building data package..."
bun run build
if [ $? -ne 0 ]; then
echo "Error building data package"
exit 1
fi
# ============================================================================
# CHECK AUTHENTICATION
# ============================================================================
echo "Using token from .npmrc for authentication..."
# ============================================================================
# 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 "Data package published successfully!"