Skip to content

Fix docs preview build failing on pnpm 11 release-age policy#1064

Merged
kawaijoe merged 3 commits into
mainfrom
fix/docs-preview-build
Jun 19, 2026
Merged

Fix docs preview build failing on pnpm 11 release-age policy#1064
kawaijoe merged 3 commits into
mainfrom
fix/docs-preview-build

Conversation

@kawaijoe

Copy link
Copy Markdown
Contributor

Describe the changes

Fixes the docs preview build, which was failing at pnpm install with ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION.

  • Root cause: pnpm 11 enables minimumReleaseAge (1 day) by default and re-verifies the committed lockfile on every install. Renovate had no cooldown, so it bumped docs deps the moment they published, leaving the lockfile with packages younger than a day that CI then rejected (e.g. fumadocs 16.10.4, wrangler@4.102.0, miniflare).
  • Add a 5-day minimumReleaseAge cooldown to Renovate (.github/renovate.json) so it stops proposing day-old dependencies, including transitive ones (Renovate passes --before during lockfile generation).
  • Set pnpm's minimumReleaseAge to 3 days in docs/pnpm-workspace.yaml, keeping supply-chain protection at version-selection time while staying below the Renovate window.
  • Revert the premature 33b1e3be9 dependency bump (fumadocs 16.10.4 to 16.8.9, next/eslint-config-next 16.2.9 to 16.2.6, and the lockfile back to its prior aged state) so the committed lockfile satisfies the cooldown with no CI override needed. Renovate will re-open these once they pass the 5-day window. The reverted versions are the ones the current docs content (typography, SEO) was built against, so there is no build regression.

Checklist

  • I have read the CONTRIBUTING.md.
  • I have included the relevant unit/golden tests. (N/A: CI / dependency change)
  • I have included the relevant samples. (N/A)
  • I have updated the documentation accordingly. (N/A)
  • I have added the required flutters_hook for widget controllers. (N/A)
  • I have updated the CHANGELOG.md if necessary. (N/A: no library change)

renovate Bot and others added 3 commits June 18, 2026 16:28
The bump in 33b1e3b pulled in fumadocs 16.10.4, next 16.2.9, wrangler 4.102.0, and miniflare, all published within the pnpm 11 minimumReleaseAge window, which broke the docs preview build. Restore the prior aged versions; Renovate re-proposes them once they pass the cooldown.
Set Renovate minimumReleaseAge to 5 days and pnpm minimumReleaseAge to 3 days so day-old dependencies no longer enter the docs lockfile and fail the preview build.
Copilot AI review requested due to automatic review settings June 19, 2026 03:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the docs preview CI build failing on pnpm 11 due to ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION by aligning pnpm’s release-age enforcement with Renovate’s dependency update cadence.

Changes:

  • Configure pnpm (docs workspace) to enforce a 3-day minimumReleaseAge during dependency resolution.
  • Configure Renovate to wait 5 days (minimumReleaseAge) before proposing dependency updates, preventing “too-new” lockfile entries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/pnpm-workspace.yaml Adds minimumReleaseAge: 4320 (3 days) so pnpm won’t select packages younger than the policy window.
.github/renovate.json Adds Renovate minimumReleaseAge: "5 days" to avoid generating lockfiles with packages that pnpm would reject.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@auto-maid

auto-maid Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

Latest Commit SHA a63719e
Preview URL https://86f120ef-forui-docs-dev.duobase.workers.dev/docs

You're seeing this because the docs/samples were updated.

@kawaijoe kawaijoe merged commit 6be5b6d into main Jun 19, 2026
4 checks passed
@kawaijoe kawaijoe deleted the fix/docs-preview-build branch June 19, 2026 03:33
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.

2 participants