Skip to content

ci: add CI/CD pipeline, semantic versioning, and npm publishing#1

Merged
cahaseler merged 3 commits intomainfrom
ci-versioning
Mar 11, 2026
Merged

ci: add CI/CD pipeline, semantic versioning, and npm publishing#1
cahaseler merged 3 commits intomainfrom
ci-versioning

Conversation

@cahaseler
Copy link
Owner

Summary

  • GitHub Actions CI: lint, typecheck, test on all PRs and pushes to main
  • Semantic-release: automated versioning and npm publishing on main
  • Commitlint + husky: enforces Conventional Commits format locally
  • Build pipeline: tsc compiles to dist/ with JS, declarations, and source maps
  • Package.json configured for npm publishing (exports, metadata, files)
  • MIT license added

Setup required after merge

  • Add NPM_TOKEN secret to the GitHub repo for npm publishing
  • Enable branch protection on main (require status checks to pass)

Test plan

  • bun run build produces correct output in dist/
  • bun test passes (75 tests)
  • bun run lint passes
  • bun run typecheck passes
  • commitlint rejects bad messages, accepts valid ones
  • Pre-commit hook runs lint + typecheck + tests
  • CI workflow runs on this PR

- GitHub Actions: lint, typecheck, test on PRs; semantic-release on main
- commitlint + husky for conventional commit enforcement
- Build config (tsconfig.build.json) for JS + declarations output
- Package.json: exports, metadata, scripts for npm publishing
- MIT license
@cahaseler cahaseler merged commit 2d0af14 into main Mar 11, 2026
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant