Skip to content

feat: local version bump automation with CI check#7

Merged
CyanoTex merged 1 commit into
mainfrom
version-bump-automation
Apr 6, 2026
Merged

feat: local version bump automation with CI check#7
CyanoTex merged 1 commit into
mainfrom
version-bump-automation

Conversation

@CyanoTex

@CyanoTex CyanoTex commented Apr 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pre-commit hook (.githooks/pre-commit) auto-bumps patch version on first code commit per branch — skips if already bumped, on main, or docs-only changes
  • CI check (.github/workflows/version-bump.yml) validates version bump on PRs as a safety net — fails if code changed without a bump, or if plugin.json and marketplace.json versions don't match
  • Bump script (scripts/bump-version.js) for manual use
  • README documents the one-time git config core.hooksPath .githooks setup

Replaces the GitHub Actions auto-bump-after-merge approach, which can't push to branch-protected main on personal repos without a PAT.

Test plan

  • node scripts/bump-version.js bumps both files in sync
  • Pre-commit hook fired on this commit: 1.0.0 → 1.0.1
  • CI check runs on this PR and passes (version bump included)

🤖 Generated with Claude Code

- Pre-commit hook auto-bumps patch version on first code commit per branch
- CI workflow validates version bump on PRs (safety net)
- Bump script at scripts/bump-version.js for manual use
- README documents the one-time git hooks setup

Replaces the GitHub Actions auto-bump approach which can't push
to branch-protected main on personal repos without a PAT.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CyanoTex CyanoTex merged commit a426e60 into main Apr 6, 2026
1 check passed
@CyanoTex CyanoTex deleted the version-bump-automation branch April 6, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant