Each section below covers a specific failure mode. Search for the exact message text you see in your logs to find the relevant entry.
Symptom: The version stage logs No relevant commits found for <package> since <tag>, skipping version bump and exits with code 0.
Cause: There are commits since the tag, but none triggers a bump under the configured preset. With conventionalcommits (the default), only feat, fix, perf, revert and breaking changes do; chore, docs, refactor, test, ci and similar don't.
Fix: Either (a) add a releasable commit, (b) force a bump with --bump patch, or (c) set "preset": "angular", which releases at least a patch for any commit. Confirm which commits exist with git log <tag>..HEAD --oneline.
Symptom: The version stage logs No new commits found for <package> since <tag>, skipping version bump and exits with code 0.
Cause: No commit since the tag touches the package's directory or a crate or Dart package it versions through cargo.paths or pub.paths. A nested package's commits count only if it never releases on its own (it's private or outside version.packages). In sync mode every commit in the workspace counts.
Fix: None needed if nothing changed. Otherwise list the commits with git log <tag>..HEAD --oneline -- <package-dir>, adding any cargo.paths or pub.paths directories and a ':(exclude)<dir>' for each nested package that releases on its own. Check that <tag> is the release you expect.
Symptom: The version stage logs Discovered 0 NPM packages and 0 Rust packages and does nothing.
Cause: version.packages is set to a pattern that matches no packages, or the path is wrong. This can also occur in a non-monorepo project where workspace discovery fails because package.json is missing a workspaces field.
Fix: Check version.packages in releasekit.config.json. The value should be an array of glob patterns matching package name strings (e.g. ["@myorg/*"]) or workspace-relative paths. Run with --verbose to see what directories are scanned. For single-package repos, omit version.packages entirely and let auto-detection run.
Symptom: The version stage logs a mismatch warning between the package.json version and the latest git tag and either aborts or continues unexpectedly.
Cause: The version written to package.json has diverged from the version encoded in the latest git tag. This typically happens after a manual version bump, a partial release, or cherry-picking a version commit without its accompanying tag.
Fix: The version.mismatchStrategy config option controls behaviour:
| Strategy | Behaviour |
|---|---|
warn (default) |
Log a warning and continue using the git tag |
error |
Abort with a non-zero exit code |
prefer-git |
Silently trust the git tag; ignore package.json |
prefer-package |
Silently trust package.json; ignore the tag |
ignore |
Suppress the warning and continue |
Set the appropriate strategy in releasekit.config.json under version.mismatchStrategy. If you want to resync permanently, align package.json and the tag manually, then re-run.
Symptom: The notes stage logs OLLAMA_API_KEY is not set. Returning entries ungrouped. (or the equivalent for OPENAI_API_KEY / ANTHROPIC_API_KEY). Release notes are generated but LLM categorisation and enhancement are skipped.
Cause: The API key environment variable for the configured LLM provider is not present in the workflow environment. This is treated as a soft failure — notes are generated without LLM enhancement rather than aborting the release.
Fix: Pass the secret to the job that runs the notes stage. In the standing-PR workflow that's the release and immediate jobs, plus update and reconcile if you use the release:preview-notes label:
- run: pnpm exec releasekit standing-pr publish
env:
GITHUB_TOKEN: ${{ github.token }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# or ANTHROPIC_API_KEY / OLLAMA_API_KEY depending on notes.releaseNotes.llm.providerSee the standing-PR example for the full workflow, and ci-setup.md — Standing Release PR for the secrets table.
Symptom: The notes stage warns <provider> request timed out: nothing received for 60000ms and falls back to unenhanced entries.
Cause: The provider sent nothing for notes.releaseNotes.llm.options.timeout (default 60 000 ms) on every retry: it stalled before its first token or mid-response. A slow response that keeps streaming never times out. Common triggers are an overloaded or unreachable endpoint, or a local model that takes longer than the timeout to load or to read a large prompt.
Fix: Check the provider's status. If it is healthy but slow to start responding, increase the timeout in config:
{
"notes": {
"releaseNotes": {
"llm": {
"options": { "timeout": 120000 }
}
}
}
}Also consider reducing llm.concurrency (default 5) if the provider rate-limits concurrent requests, or switching to a faster model for the initial categorise pass.
Symptom: The notes stage completes without error, but the generated release notes contain no categorised entries, or all entries fall into an uncategorised bucket.
Cause: The LLM returned categories that do not match any entry in the commit list. This usually means the custom categories descriptions are too restrictive, use domain-specific terminology the model does not map to the commits, or the commit messages themselves are not descriptive enough.
Fix: Broaden the description fields in notes.releaseNotes.llm.categories, or remove the categories override entirely to use the built-in defaults (New, Changed, Fixed, Developer). Run with --verbose to inspect the raw LLM response and see what categories were returned. You can also add prompts.instructions.categorize to guide the model more explicitly.
Symptom: The notes stage throws Template not found at path <path> and aborts changelog or release notes generation.
Cause: notes.changelog.templates.path or notes.releaseNotes.templates.path points to a directory or file that does not exist relative to the project root.
Fix: Verify the path exists:
ls <path>Paths are resolved relative to the project root (the directory containing releasekit.config.json). Use a relative path starting with ./. If the directory is missing, either create it with the required template files or remove the templates block to use the built-in renderer. See the templates guide for required file names.
Symptom: The publish logs Transient publish error for <pkg>@<version> (attempt N/3), retrying in <ms>ms and then either succeeds or, after the attempts are exhausted, fails the stage with the original registry error.
Cause: A short-lived registry or network blip — HTTP 5xx, ETIMEDOUT, ECONNRESET, EAI_AGAIN, or a 429 rate-limit response — interrupted the publish.
Fix: No action required when it recovers. releasekit auto-retries transient errors per package up to 2 times (3 attempts total) with exponential backoff before failing. The attempt count is recorded in the per-package publish result. Permanent errors (auth, missing scope/package, validation) are not retried and still fail fast. If the retries are exhausted, the final error shown is the real registry error — check the registry status page, then re-run the release. Re-running is safe: a version that already landed is detected and skipped rather than re-published. If the failure left a release partially published, see Recovering from a failed publish.
Symptom: The publish stage fails with npm publish failed: ENEEDAUTH or code ENEEDAUTH.
Cause: npm could not authenticate. Two common sub-cases:
- OIDC: the job lacks
id-token: write, or the package has no trusted publisher on npmjs.com for this workflow. - Token:
NODE_AUTH_TOKENorNPM_TOKENis not set, or the secret is not passed to the publish step.
Fix: For OIDC trusted publishing (recommended), ensure id-token: write is in workflow permissions and that each package has a trusted publisher configured at npmjs.com. See ci-setup.md — npm OIDC Trusted Publishing for the full setup. For token-based publishing, set:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}Symptom: The publish stage fails with Tag vX.Y.Z already exists on origin at a different commit when creating git tags, or a standing-PR publish fails with Can't tag this release at <sha>: vX.Y.Z is at <sha> on the remote.
Cause: The remote already has the tag at another commit, so that version was released before. Tags are created locally before publishing; a local tag that isn't on the remote, such as one a failed batch run left behind, is replaced instead.
Fix: Raise the version in releasekit.versions.json to at least the last released one, then release again; the next release bumps past it. A retry, or a release from the same record, computes the same version and fails the same way. Don't delete or move the remote tag; git ls-remote --tags origin shows where each tag points.
With git.push off, the remote isn't checked, so a local tag at another commit fails with Tag vX.Y.Z already exists at a different commit. If that tag was never pushed, delete it (git tag -d vX.Y.Z) and re-run publish with the original version output.
Symptom: The publish stage logs GitHub release already exists for tag <tag> and continues without error.
Cause: This is expected behaviour on a re-run. releasekit detects the existing GitHub release and skips creation idempotently. No action is required.
Fix: No action required. If you need to update the release body, edit it directly in the GitHub UI.
Symptom: cargo publish fails with failed to verify package tarball or a similar build-verification error.
Cause: Cargo runs a fresh build inside a temporary directory as part of the publish verification step. This can fail if the package depends on files outside the published tree, uses build scripts that require local tooling, or has workspace path dependencies.
Fix: As a workaround, set publish.cargo.noVerify: true in config:
{
"publish": {
"cargo": { "noVerify": true }
}
}This passes --no-verify to cargo publish, which skips the tarball rebuild. The package is still published as built — it is the verification step that is skipped, not compilation. Prefer fixing the underlying cause (usually missing include entries in Cargo.toml) over leaving noVerify enabled long-term.
Symptom: cargo publish fails with an authentication error, or the publish stage logs CARGO_REGISTRY_TOKEN not set.
Cause: The CARGO_REGISTRY_TOKEN environment variable is not present. Unlike npm, crates.io does not support OIDC or short-lived tokens — a long-lived API token is required.
Fix: Generate a token at crates.io/settings/tokens, add it as a repository secret, and pass it to the publish step:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}There is no OIDC equivalent for crates.io at this time.
A publish run can fail partway through: some packages reach the registry, the next one errors, and the run stops. ReleaseKit never rewrites history to undo that. Already-published versions are skipped on a later run. Do not delete a tag for a version that was published.
What was pushed depends on the mode. The order is in Publish order and partial failure.
- Batch mode (one shared tag): nothing is pushed. In a direct release the version commit is still local. Re-run; packages already on the registry are skipped, then the branch, tags, and GitHub Releases are pushed.
- Per-package mode (each update has its own tag): the release commit and the tags of packages that published are already on the remote. No GitHub Release was created. Roll forward with the next release. Do not delete those tags.
- A tag push failed after the branch push (direct release, either mode): the release commit is on the remote, but its tags are not. A re-run fails every time, because its new release commit can't be pushed over this one. Roll forward with the next release; this version gets no GitHub Release. Before that release, restore the tags with the commands from the failure report. Without them it counts from the previous tag, so its changelog repeats this release's entries and its bump counts this release's commits again. Under
mismatchStrategy: 'error'it can also throw a version mismatch if this release moved onto or off a prerelease. - Standing-PR mode: the merge already put the version commit on
main. Addrelease:retryto the merged standing PR (below). Do not delete a tag whose version was published. A refused publish is different.
On a partial-publish failure or a refused publish, ReleaseKit posts a failure report so the state is visible outside the workflow logs. Where it lands depends on the release mode:
- Standing-pr mode — a comment on the merged standing PR whose manifest drove the publish.
- Direct / label mode — a comment on the merged feature PR that triggered the release.
- Manual dispatch (no PR) — the workflow step summary.
The report contains a per-package ledger (✅ published / ⏭ skipped / ❌ failed / ⏸ not attempted), the stage that failed and its error, mode-appropriate recovery instructions, and a note that retrying is safe. The comment is idempotent: a repeated failure updates the same report, and a later successful run flips it to resolved.
Re-run when the failed run was batch mode or a standing-PR publish. The publish path skips versions already on the registry. In batch mode the retry then pushes the branch, tags, and GitHub Releases. In per-package mode the commit and earlier tags are already on the remote — roll forward instead of trying to undo them.
- Standing-pr mode: add the
release:retrylabel to the merged standing PR. A workflow validates that the PR is a merged standing PR, dispatches the manifest-driven publish for it, and removes the label — so each application is exactly one retry and you can re-apply the label to retry again. (Applying it to a non-standing or unmerged PR is a no-op: the workflow leaves a comment explaining why and removes the label.) Equivalently, dispatch the release workflow yourself targeting the merged standing PR (standing-pr publish --pr <number>, from its merge commit). The label name is configurable viaci.labels.retry. - Direct / label mode: use GitHub's "Re-run failed jobs" on the failed workflow run, unless the branch push landed (above).
A successful retry marks the failure report resolved and clears the supersede warning described below.
If you would rather move on, merge the next standing PR. It versions on top of the failed release rather than re-proposing it:
- Every package, including the ones that failed before, publishes at the new version. The unpublished versions are skipped, because the next release bumps from the versions the release commit set. With bumps from commits it also counts their commits again, so a failed 1.3.0 is followed by 1.4.0, and a failed 2.0.0 by 3.0.0.
- The next changelog repeats the failed release's entries wherever its tag was never pushed: every tag in batch mode or after a refused publish, and a failed package's own tag in per-package mode.
CHANGELOG.mdkeeps the section for the skipped version. In per-package mode, tags for packages that did publish are already on the remote; leave them.
Nothing is lost, as every change since the last tag ships. The gap is cosmetic: no GitHub Release for the skipped version, and a version hole on the registry for the packages that didn't publish. To publish the failed versions as they are, retry instead.
So a failed publish does not silently fade away, ReleaseKit warns while a partially-published release remains unresolved. The next standing PR's body and the release preview include a block such as:
⚠️ Previous release v0.24.0 is partially published (2/4 packages on the registry). Retry it viarelease:retryon the merged standing PR (#42) to publish its versions, or merging this PR supersedes it: the next release skips the unpublished versions and bumps on top of them. Do not delete tags for versions that were published.
This gives you an honest choice between the two recovery paths. The warning is keyed off the failure report on the most recently merged standing PR and its resolved status, so it clears automatically once the failed release is retried successfully or superseded by the next release. After a refused publish that can't be retried, the warning offers only the supersede path.
Before it creates a tag or publishes anything, standing-pr publish checks the merged standing PR's manifest: the release bot wrote it and nobody else made its latest edit, it parses, its override labels still match the PR, the merger has the required permission (ci.standingPr.authorization), and it matches the merged source. If a check fails, the publish refuses. The version bumps and changelogs are on main from the merge, but nothing is tagged or published. It reads the PR from the GitHub API, whatever triggered it, and refuses a PR that hasn't merged or isn't the standing PR without posting a report there.
The refusal posts the failure report on the PR, with 0 packages published and the reason, unless the PR already has a report from an earlier publish attempt. Retrying won't help, because a retry reads the same manifest and merged commit. The exceptions are a PR that couldn't be read from the GitHub API, or whose merge commit is unknown; retry those once the API is reachable. The report says which applies.
To recover, merge the next standing PR. It supersedes the refused release as described in Recovery path 2: the refused versions are skipped. Don't delete tags or revert the release commit.
standing-pr merge, release --from-draft and a release refused under enforceMergeAuthor post the same report on the standing PR, the draft issue or the merged PR, with the recovery for that path. A refused merge put nothing on main, so it raises no supersede warning.
Symptom: The publish stage fails pushing the release commit or tag with a message like Failed to push: branch protection rules or remote: error: GH006: Protected branch update failed.
Cause: The branch has protection rules that block direct pushes. This can affect both the version commit push and the tag push.
Fix: Check whether the configured publish.git.pushMethod matches the protection ruleset. For GitHub Actions with a bot token, pushMethod: "https" is usually required (not SSH). If a bypass is needed, configure the github-actions[bot] app as a bypass actor in the branch protection settings rather than disabling protection. That bypass applies to every workflow in the repo, not just the release job: see Workflow token approvals. Note: git.skipHooks: true bypasses local git hooks but has no effect on remote branch protection — these are independent concerns.
Symptom: git operations fail with fatal: refusing to merge unrelated histories.
Cause: The checkout is shallow (fetch-depth not set to 0) or the version.baseSha config points to a commit not reachable from the current HEAD. releasekit needs full history to walk commits since the last tag.
Fix: Set fetch-depth: 0 on the checkout step:
- uses: actions/checkout@v6
with:
fetch-depth: 0If version.baseSha is set in config, verify the SHA is reachable: git merge-base --is-ancestor <baseSha> HEAD.
Symptom: The publish stage fails when pushing the release commit because a husky pre-push hook exits with a non-zero code (for example, a lint or test hook).
Cause: The release commit triggers pre-push hooks defined in .husky/pre-push. releasekit does not bypass hooks by default.
Fix: Set git.skipHooks: true in config to pass --no-verify to the push command. This is safe for the release commit because the code was already validated when the source PR's CI ran. Alternatively, configure husky to skip in CI by checking $CI:
# .husky/pre-push
[ "$CI" = "true" ] && exit 0
# ... rest of hookSymptom: A workflow using workflow_run as its trigger never starts, even though the upstream workflow completed.
Cause: If the upstream CI workflow was cancelled (e.g. due to a concurrent push to main with cancel-in-progress: true), GitHub does not fire workflow_run for the cancelled run.
Fix: Use per-SHA concurrency groups on push events so sequential main-branch pushes do not cancel each other:
concurrency:
group: ci-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
cancel-in-progress: trueSee ci-setup.md — CI concurrency caveat for the full explanation.
Symptom: The release workflow completes successfully but no version is bumped, no tag is created, and no publish occurs.
Cause: Two common cases:
- Label trigger mode: the merged PR has no
bump:*orrelease:graduatelabel. The log saysNot releasing: No release labels found. - Commit mode: all commits since the last tag match
release.ci.skipPatterns(configure this explicitly, e.g.["chore: release "], to suppress release commits) or are non-releasable types under the preset.
Fix: In label mode, ensure the merged PR carries a bump:patch, bump:minor, or bump:major label. In commit mode, confirm releasable commits (feat:, fix:) exist since the last tag with git log <last-tag>..HEAD --oneline. Run with --dry-run --verbose to see the commit analysis without making changes.
Symptom: releasekit release fails with Could not look up the PR for <sha>, naming pull-requests: read.
Cause: The workflow token can't list the PRs for a commit. An explicit permissions: block without pull-requests denies it.
Fix: Add pull-requests: read to the release job's permissions. releasekit gate reports the same failure as shouldRelease: false.
Symptom: Commits land on main but the standing PR is never created or updated.
Fix: See the troubleshooting table in ci-setup.md — Standing Release PR: Troubleshooting. The table covers the four most common causes in order of likelihood.
Background for all of these: the release taxonomy (groups vs. prerequisites vs. selection).
Symptom: Touching one member of a version.groups set released the entire set.
Cause: This is by design for atomic groups. fixed releases all members at a shared version on any change; independent releases only changed members but expands a target to the whole group so it never ships partially. Targeting (a scope:* label, --target, or a commit that hits one member) pulls in the group.
Fix: If members should not move together, they aren't a group — use linked (shared version, changed-only) only if they share a version line, or drop the group entirely and rely on per-package versioning plus --include-prerequisites for dependency coupling.
Symptom: You released package A, but its changed internal dependency B stayed at its old version, so A resolves against an unpublished B.
Cause: Prerequisites are opt-in. A plain target releases only the targeted packages; the changed transitive dependency is not pulled in automatically.
Fix: Add --include-prerequisites (releasekit version/release/standing-pr update) or, in standing-pr mode, the release:with-prerequisites label on the standing PR. B then publishes first, at its own commit-driven bump. If A and B should always ship together regardless of which changed, declare them a group instead.
Symptom: You unticked a package in the Packages to release checklist, but the release still includes it (or the body re-ticks it).
Cause: Usually the workflow is missing the edited trigger or the relay that dispatches its update, so the body edit never re-runs standing-pr update. Two other cases re-tick by design: the package is a lockstep (fixed/linked) group member (can't be held back individually), or the release is sync (atomic — no checklist applies).
Fix: Add edited to the workflow's pull_request: types, and the relay job with its sender.type != 'Bot' guard (see examples/ci/standing-pr). Confirm the <!-- rk-sel:… --> marker comments are intact — the selection is read from those, never the visible text.
releasekit ships three flags useful for diagnosing issues:
--dry-run — runs the full pipeline without writing files, creating tags, pushing to remote, or publishing to any registry. Use this to confirm what a release would do before enabling it. Output is prefixed with [dry-run] in logs.
--verbose — emits internal decision logs: which commits were found and classified, which packages were discovered, what version strategy was selected, and what LLM requests/responses look like. Use this when the tool exits cleanly but produces an unexpected result.
--json — emits structured JSON on stdout. Useful for piping between stages or for scripted inspection. The result is wrapped in an envelope whose schemaVersion changes only on a breaking change to its shape (see the JSON output contract).
In CI logs: expand the failing step to see the full output. Look for the [dry-run] prefix to confirm dry-run mode is active, and check for [warn] lines that may indicate soft failures (such as the LLM key warning) that did not abort the run but produced degraded output.