Files
mcp-proc/scripts/release.sh
2025-10-11 03:22:03 +02:00

32 líneas
433 B
Bash
Archivo Ejecutable

#!/bin/bash
set -e
VERSION=$1
if [ -z "$VERSION" ]; then
echo "Usage: ./scripts/release.sh <version>"
exit 1
fi
echo "🚀 Releasing version $VERSION..."
# Run tests
echo "Running tests..."
npm test
# Build
echo "Building..."
npm run build
# Update version
npm version "$VERSION" -m "Release v%s"
# Publish
echo "Publishing to npm..."
npm publish
# Push tags
git push --follow-tags
echo "✅ Released version $VERSION!"