Repository navigation
ci(docs): pin the Mintlify CLI version used by the docs checks - #2335
Merged
Merged
Conversation
npx mintlify resolves the latest dist-tag at run time, so a broken upstream publish turns every PR in this repo red with a failure unrelated to the diff. 4.2.931 ships a transitive dependency on @mintlify/auth-edge@0.0.51, which is not on the npm registry, so the CLI cannot be installed at all. Pin to 4.2.920, verified locally against main: npx mintlify@4.2.920 validate -> build validation passed npx mintlify@4.2.920 broken-links --check-redirects -> no broken links found bash scripts/check-orphans.sh -> No orphan pages found Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Sep 24, 2026
This was referenced Sep 24, 2026
palango
approved these changes
Sep 25, 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.
The hole, and the fix
The required status check is currently red on every open PR in this repo, for a reason that has nothing to do with any of their diffs.
docs-validation.ymlinvokesnpx mintlifywith no version, so it resolves thelatestdist-tag at run time.latestis4.2.931, and that release carries a transitive dependency on@mintlify/auth-edge@0.0.51— a package that is not published on the npm registry. The CLI therefore cannot be installed, and the job dies before it reads a single file:Confirmed at the registry rather than through a local npm cache, which reports a stale
latest:This pins the version behind an
envkey so there is one place to bump.Why pin rather than wait it out
Waiting works only until the next bad publish. An unpinned
npxin a required status check means any upstream mistake, at any hour, blocks merging repo-wide — and the failure names npm, not the docs, so the next person to hit it loses time working out that their PR is fine. The cost of pinning is a deliberate bump; the comment in the file says how to do it.I did not pin to the newest working release blindly — 4.2.920 is the version I actually ran the full check set against.
Verification
Against current
main(3a415880), locally:Because
pull_requestworkflows run from the PR's merge ref, this PR exercises its own fix — if the pin is wrong, this PR goes red rather thanmain.What this does NOT do
envvalue would be the follow-up if we want the version to keep moving on its own.mintCLI used locally by contributors, which is installed globally per AGENTS.md.Urgency
This is the first thing in the queue that needs a review — nothing else can merge until it lands.
🤖 Generated with Claude Code