Files
ruflo/.github/workflows/plugin-version-bump.yml
T
Mario JauvinandRuFlo 9d94a5bcdb ci: require a plugin version bump when shipped plugin files change (#4447)
`/plugin marketplace update` compares plugin.json "version" with the installed
copy, so a fix merged without a bump never reaches existing installs (#4436
left ruflo-console at 0.45.1 until #4443 bumped it by chance).

scripts/audit-plugin-version-bump.mjs diffs <base>...HEAD and fails when a
plugin has shipped changes but its plugin.json version did not increase. New
plugins pass. Not counted as shipped: tests/, docs/, README*.md, CHANGELOG*.md,
*.spec.* and *.test.* files, and scripts/smoke*, scripts/test-*, scripts/bench*
(smoke scripts and tests that pin the version are edited together with a bump).
SKILL.md, commands/*.md and agents/*.md do count, since they ship.

.github/workflows/plugin-version-bump.yml runs it on PRs touching plugins/**.
The label skip-plugin-version-check skips the job.

Verified against history: #4436 (43a395435) fails, #4443 (7564f7cef) passes.
The workflow itself has not run on GitHub yet.

Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-23 23:51:58 -04:00

22 lines
693 B
YAML

name: Plugin version bump
on:
pull_request:
paths:
- 'plugins/**'
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
version-bump:
# A fix merged without raising the plugin version never reaches installed copies (#4436).
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-plugin-version-check') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Changed plugins must raise their version
run: node scripts/audit-plugin-version-bump.mjs --base "origin/${{ github.base_ref }}"