Skip to content

ci: Add conventional commits enforcement and auto-versioning - #17

Merged
rhoades-brown merged 3 commits into
mainfrom
conventional_commits
May 29, 2026
Merged

ci: Add conventional commits enforcement and auto-versioning#17
rhoades-brown merged 3 commits into
mainfrom
conventional_commits

Conversation

@rhoades-brown

Copy link
Copy Markdown
Owner

Summary

Adds conventional commit enforcement via a husky commit-msg hook and automated semantic versioning in CI.

Changes

Conventional commits (husky hook)

  • Added husky devDependency with prepare script
  • Created .husky/commit-msg hook validating commit messages match type(scope)?: description
  • Allowed types: feat, fix, chore, docs, style, refactor, perf, test, build, ci, revert

Auto-versioning CI workflow

  • Split ci.yml into build (lint/build/test) and release (version bump + GitHub release) jobs
  • Release job analyses commits since last tag to determine bump type
  • Bumps version in manifest.json, package.json, and versions.json
  • Commits with [skip ci] to prevent infinite loops
  • Creates GitHub release with main.js, manifest.json, styles.css attached
  • Removed PR pre-release step

version-bump.mjs

  • Added --bump=major|minor|patch CI mode

Documentation

  • Created DEVELOPMENT.md with build/contributing/versioning docs
  • Refactored README.md to point to DEVELOPMENT.md

@rhoades-brown
rhoades-brown merged commit b3e6751 into main May 29, 2026
5 checks passed
@rhoades-brown
rhoades-brown deleted the conventional_commits branch May 29, 2026 22:04
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