mirror of
https://github.com/Dammyjay93/interface-design.git
synced 2026-09-14 18:34:53 +08:00
e6df9df047
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
542 B
Bash
Executable File
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"
|