fix: sync plugin.json version with latest tag (#171)

Sync plugin.json version to 1.4.1, add CI check to verify versions match on release, and add release.sh script. Fixes #170.
This commit is contained in:
ericcai
2026-02-09 08:18:49 +08:00
committed by GitHub
parent 11ad2a875f
commit d2191d09a2
4 changed files with 80 additions and 2 deletions

View File

@@ -25,6 +25,18 @@ jobs:
exit 1
fi
- name: Verify plugin.json version matches tag
env:
TAG_NAME: ${{ github.ref_name }}
run: |
TAG_VERSION="${TAG_NAME#v}"
PLUGIN_VERSION=$(grep -oE '"version": *"[^"]*"' .claude-plugin/plugin.json | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
if [ "$TAG_VERSION" != "$PLUGIN_VERSION" ]; then
echo "::error::Tag version ($TAG_VERSION) does not match plugin.json version ($PLUGIN_VERSION)"
echo "Run: ./scripts/release.sh $TAG_VERSION"
exit 1
fi
- name: Generate changelog
id: changelog
run: |