[PR #3174] [MERGED] ci: cache mintlify cli in check-links workflow #3243

Closed
opened 2026-06-05 18:21:33 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3174
Author: @mdrxy
Created: 3/17/2026
Status: Merged
Merged: 3/17/2026
Merged by: @mdrxy

Base: mainHead: mdrxy/cache-mintlify


📝 Commits (4)

📊 Changes

1 file changed (+20 additions, -0 deletions)

View changed files

📝 .github/workflows/_check-links.yml (+20 -0)

📄 Description

Cache the Mintlify CLI global install in the _check-links workflow. The npm i -g mint@latest step and its KaTeX patch are slow — caching the installed binaries and skipping both steps on cache hit saves a chunk of wall time on every link-check run.

Changes

  • Add an actions/cache@v4 step keyed on runner.os, Node 22, and a hash of _check-links.yml to cache /usr/local/lib/node_modules/mint and /usr/local/bin/mint
  • Gate the Install Mintlify CLI and Patch KaTeX __VERSION__ bug steps behind steps.cache-mint.outputs.cache-hit != 'true'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3174 **Author:** [@mdrxy](https://github.com/mdrxy) **Created:** 3/17/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@mdrxy](https://github.com/mdrxy) **Base:** `main` ← **Head:** `mdrxy/cache-mintlify` --- ### 📝 Commits (4) - [`7728cc8`](https://github.com/langchain-ai/docs/commit/7728cc8af61fcbf249879217553a61bfb78d703e) ci: cache mintlify cli in check-links workflow - [`4eea2d3`](https://github.com/langchain-ai/docs/commit/4eea2d3406f166a8fa32f3d89483fe97833d365b) ver - [`b73a1c4`](https://github.com/langchain-ai/docs/commit/b73a1c44cfc71b079bff6111fad022f007249c14) cr - [`ac9c545`](https://github.com/langchain-ai/docs/commit/ac9c5455d92d17e3cd74b8869ac6590521482a4d) fix ### 📊 Changes **1 file changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/_check-links.yml` (+20 -0) </details> ### 📄 Description Cache the Mintlify CLI global install in the `_check-links` workflow. The `npm i -g mint@latest` step and its KaTeX patch are slow — caching the installed binaries and skipping both steps on cache hit saves a chunk of wall time on every link-check run. ## Changes - Add an `actions/cache@v4` step keyed on `runner.os`, Node 22, and a hash of `_check-links.yml` to cache `/usr/local/lib/node_modules/mint` and `/usr/local/bin/mint` - Gate the `Install Mintlify CLI` and `Patch KaTeX __VERSION__ bug` steps behind `steps.cache-mint.outputs.cache-hit != 'true'` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:21:33 -04:00
yindo closed this issue 2026-06-05 18:21:33 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3243