Skip to content

Fix the Release workflow and restore the pending 0.4.0 changesets#141

Merged
KayleeWilliams merged 2 commits into
mainfrom
KayleeWilliams/fix-release-hook
Jul 7, 2026
Merged

Fix the Release workflow and restore the pending 0.4.0 changesets#141
KayleeWilliams merged 2 commits into
mainfrom
KayleeWilliams/fix-release-hook

Conversation

@KayleeWilliams

Copy link
Copy Markdown
Collaborator

Problem

Every Release run on main has failed since #137. The changesets action commits "Version Packages" via git-cli on the runner, which fires the husky pre-commit hook, whose test suite includes leadtype CLI > runs lint against this repo's docs. Since #137 that lint typechecks the repo docs' snippets against the built package — and the Release job never builds dist/ (CI does, via its explicit Build leadtype + Link CLI steps), so the test fails on the runner and the hook aborts the action's commit.

Because of that, the Version Packages PR (#104) was never updated with the changesets from #138/#139/#140 — and it was merged stale. Current state of main before this PR:

  • package.json says 0.4.0, but npm is still at 0.3.1 — the publish never ran, and there is no leadtype@0.4.0 tag.
  • The 0.4.0 CHANGELOG entry is missing three changesets (lint-external-links, mdx-children-registry, mcp-card-polish), which are still pending on main — so the next successful version run would incorrectly open a 0.5.0 PR.

Fix

  1. HUSKY: "0" on the changesets step — skip git hooks for the action's commit. The hook's suite is redundant there: CI builds and runs everything on the PR itself.
  2. Revert the stale Version Packages commit (92b9455) — safe because nothing was published or tagged. This restores 0.3.1 and all 19 changesets, so on merge the fixed workflow regenerates a complete Version Packages PR: a proper 0.4.0 containing every changeset.

After merging

The Release workflow will open a fresh "Version Packages" PR for 0.4.0. Merging that one publishes to npm and bumps the homebrew tap.

🤖 Generated with Claude Code

The changesets action commits 'Version Packages' via git-cli on the
runner, which fires the husky pre-commit hook. The hook's test suite
needs a built leadtype dist (the repo-docs lint test typechecks
snippets against the package), and the Release job never builds one,
so every Release run since snippet typechecking landed has failed
inside the hook — leaving the Version Packages PR stale and blocking
publish. CI already builds and runs the full suite on the PR, so set
HUSKY=0 on the changesets step.
@pullfrog

pullfrog Bot commented Jul 7, 2026

Copy link
Copy Markdown

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog𝕏

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 1 minute

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 92250f83-eefe-450c-b5e8-e63f360b0b46

📥 Commits

Reviewing files that changed from the base of the PR and between 92b9455 and 12d6275.

📒 Files selected for processing (18)
  • .changeset/batch-git-frontmatter-enrichment.md
  • .changeset/bright-agents-discover.md
  • .changeset/cache-include-resolution.md
  • .changeset/calm-engines-parse.md
  • .changeset/concurrent-generate-safety.md
  • .changeset/convert-prune-option.md
  • .changeset/generated-at-option.md
  • .changeset/lint-config-aware.md
  • .changeset/lint-link-coverage.md
  • .changeset/lint-snippet-parse.md
  • .changeset/lint-snippet-typecheck.md
  • .changeset/manifest-pages-nav-order.md
  • .changeset/openapi-generated-docs.md
  • .changeset/redirects-lockfile.md
  • .changeset/watch-mode-incremental-builds.md
  • .github/workflows/release.yml
  • packages/leadtype/CHANGELOG.md
  • packages/leadtype/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch KayleeWilliams/fix-release-hook

Comment @coderabbitai help to get the list of available commands.

@KayleeWilliams KayleeWilliams merged commit 40a0215 into main Jul 7, 2026
4 checks passed
@KayleeWilliams KayleeWilliams deleted the KayleeWilliams/fix-release-hook branch July 7, 2026 09:41
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