Files
Dammyjay93 e6df9df047 Add auto-version hook
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 14:37:41 +01:00

19 lines
542 B
Bash
Executable File

#!/bin/bash
# Auto-update version on every commit
# Uses timestamp format: YYYY.MM.DD.HHMM
# This ensures plugin cache refreshes on every update
VERSION=$(date +"%Y.%-m.%-d.%H%M")
# Update plugin.json
sed -i '' "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" .claude-plugin/plugin.json
# Update marketplace.json
sed -i '' "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" .claude-plugin/marketplace.json
# Stage the updated files
git add .claude-plugin/plugin.json .claude-plugin/marketplace.json
echo "Version updated to $VERSION"