mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
4129a0aedf
The plugin version pins to packages/runtime/package.json, but neither the lefthook glob nor the plugin-skills-check workflow path filters watched that file. A routine release bump to the runtime version therefore matched no trigger and the pin silently rotted between releases (the root cause of the version drift). Add packages/runtime/package.json to the lefthook glob and to both the push and pull_request path filters so a version bump re-runs check:plugin-skills.
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
name: plugin-skills-check
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "packages/*/skills/**"
|
|
- "skills/runtime/**"
|
|
- "skills/react-core/**"
|
|
- "skills/a2ui-renderer/**"
|
|
- "scripts/sync-plugin-skills.ts"
|
|
- "scripts/__tests__/sync-plugin-skills.test.ts"
|
|
- ".claude-plugin/**"
|
|
- ".github/workflows/plugin-skills-check.yml"
|
|
# The plugin version pins to packages/runtime/package.json, so a release
|
|
# bump there must re-trigger the drift check or the pin silently rots.
|
|
- "packages/runtime/package.json"
|
|
pull_request:
|
|
paths:
|
|
- "packages/*/skills/**"
|
|
- "skills/runtime/**"
|
|
- "skills/react-core/**"
|
|
- "skills/a2ui-renderer/**"
|
|
- "scripts/sync-plugin-skills.ts"
|
|
- "scripts/__tests__/sync-plugin-skills.test.ts"
|
|
- ".claude-plugin/**"
|
|
- ".github/workflows/plugin-skills-check.yml"
|
|
- "packages/runtime/package.json"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
|
|
|
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 20
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run sync script unit tests
|
|
run: pnpm exec vitest run scripts/__tests__/sync-plugin-skills.test.ts
|
|
|
|
- name: Check plugin skill mirror is in sync
|
|
run: pnpm check:plugin-skills
|