Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"plugins": [
{
"name": "upsun",
"source": "./plugins/upsun"
"source": "./plugins/upsun"
}
]
}
2 changes: 1 addition & 1 deletion .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"plugins": [
{
"name": "upsun",
"source": "./plugins/upsun"
"source": "./plugins/upsun"
}
]
}
50 changes: 50 additions & 0 deletions .github/workflows/update-version-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Update Marketplace Version on Release

on:
release:
types: [published]

jobs:
update-version:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version from release tag
id: version
run: |
TAG="${{ github.event.release.tag_name }}"
# Strip leading 'v' prefix if present (e.g. v1.2.3 → 1.2.3)
VERSION="${TAG#v}"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"

- name: Update .claude-plugin/marketplace.json
run: |
jq --arg v "${{ steps.version.outputs.version }}" \
'.plugins = [.plugins[] | . + {version: $v}]' \
.claude-plugin/marketplace.json > /tmp/claude-marketplace.json
mv /tmp/claude-marketplace.json .claude-plugin/marketplace.json

- name: Update .cursor-plugin/marketplace.json
run: |
jq --arg v "${{ steps.version.outputs.version }}" \
'.plugins = [.plugins[] | . + {version: $v}]' \
.cursor-plugin/marketplace.json > /tmp/cursor-marketplace.json
mv /tmp/cursor-marketplace.json .cursor-plugin/marketplace.json

- name: Commit and push version bump
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .claude-plugin/marketplace.json .cursor-plugin/marketplace.json
git diff --cached --quiet && echo "No changes to commit" && exit 0
git commit -m "chore: bump marketplace version to ${{ steps.version.outputs.tag }}"
git push origin HEAD:${{ github.event.release.target_commitish }}
Comment thread
ganeshdipdumbare marked this conversation as resolved.
Outdated
Loading