feat: add CI checks to pre-commit hook#1227
Merged
Conversation
Add `devbox run check` command that runs all CI checks: - lint (eslint) - format-check (treefmt) - build - typecheck - test Update pre-commit hook to run `devbox run check` before each commit, ensuring local environment matches CI exactly. The check command calls other devbox commands (not yarn directly) so updates to individual commands stay in sync. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add NPM_TOKEN environment variable to all release steps (dry-run, beta, production). Required by @semantic-release/npm plugin to publish packages. This fixes release workflow failures where the job would fail immediately without running any steps due to missing npm authentication. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Repository uses npm provenance with GitHub OIDC (id-token: write), not NPM_TOKEN. Revert the incorrect token addition. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Update pre-commit hook to: 1. Run format (auto-fixes formatting issues) 2. Stage formatted files (git add -u) 3. Run CI checks This prevents commits from being blocked by formatting issues - files are automatically formatted and staged before checks run. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
MichaelGHSeg
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
devbox run checkcommand and update pre-commit hook to run all CI checks locally before commit.Changes
devbox run checkcommand to devbox.json that runs:devbox run lint(eslint)devbox run format-check(treefmt)devbox run builddevbox run typecheckdevbox run test.husky/pre-committo rundevbox run checkWhy
checkResult
All CI checks run automatically on every commit. If they fail, the commit is blocked.
🤖 Generated with Claude Code