patch: move script to tools folder

This commit is contained in:
Brian Madison
2025-08-17 11:04:27 -05:00
parent 868ae23455
commit f3cc410fb0
2 changed files with 1 additions and 1 deletions

23
tools/sync-version.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Sync local version with published npm version
# Run this after a release if the version bump commit didn't sync automatically
echo "🔄 Syncing local version with npm..."
# Get the latest published version
VERSION=$(npm view bmad-method@latest version)
echo "📦 Latest published version: $VERSION"
# Update package.json
npm version $VERSION --no-git-tag-version
# Update installer package.json
sed -i '' 's/"version": ".*"/"version": "'$VERSION'"/' tools/installer/package.json
# Commit and push
git add package.json tools/installer/package.json
git commit -m "sync: update to published version $VERSION"
git push
echo "✅ Synced to version $VERSION"