#!/bin/bash set -e VERSION=$1 if [ -z "$VERSION" ]; then echo "Usage: ./scripts/release.sh " 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!"