Skip to content

fix: add docs/.npmrc to resolve astro-mermaid peer dep conflict with Astro v6#21691

Merged
pelikhan merged 2 commits intomainfrom
copilot/aw-debug-documentation-unbloat
Mar 19, 2026
Merged

fix: add docs/.npmrc to resolve astro-mermaid peer dep conflict with Astro v6#21691
pelikhan merged 2 commits intomainfrom
copilot/aw-debug-documentation-unbloat

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

astro-mermaid@1.3.1 declares peer astro@"^4.0.0 || ^5.0.0" but the docs project uses astro@6.0.5, causing npm ci to fail with ERESOLVE in the Documentation Unbloat workflow (and any other workflow that installs docs dependencies).

Changes

  • docs/.npmrc — adds legacy-peer-deps=true to bypass the overly conservative peer dep declaration. astro-mermaid only uses stable Astro APIs (injectScript, remark/rehype via unist-util-visit) that are unchanged in v6; the restriction is a stale author declaration, not a real incompatibility.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.14.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI linked an issue Mar 19, 2026 that may be closed by this pull request
…Astro v6

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] [aw] Debug workflow failure for Documentation Unbloat fix: add docs/.npmrc to resolve astro-mermaid peer dep conflict with Astro v6 Mar 19, 2026
Copilot AI requested a review from pelikhan March 19, 2026 01:21
@pelikhan pelikhan marked this pull request as ready for review March 19, 2026 01:36
Copilot AI review requested due to automatic review settings March 19, 2026 01:37
@pelikhan pelikhan merged commit d1dced1 into main Mar 19, 2026
@pelikhan pelikhan deleted the copilot/aw-debug-documentation-unbloat branch March 19, 2026 01:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Resolves npm ci failures in the docs/ project caused by astro-mermaid@1.3.1’s outdated peer dependency range when used with astro@6.0.5.

Changes:

  • Add docs/.npmrc with legacy-peer-deps=true to bypass the peer dependency resolution conflict during installs.
  • Update the Agent Factory status documentation to include the “Weekly Blog Post Writer” workflow in the status table.

Reviewed changes

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

File Description
docs/.npmrc Configures npm in the docs workspace to ignore peer dependency conflicts so CI installs succeed with Astro v6.
docs/src/content/docs/agent-factory-status.mdx Adds a new workflow row for “Weekly Blog Post Writer” in the docs status table.

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

You can also share your feedback on Copilot code review. Take the survey.

| [Ubuntu Actions Image Analyzer](https://github.com/github/gh-aw/blob/main/.github/workflows/ubuntu-image-analyzer.md) | copilot | [![Ubuntu Actions Image Analyzer](https://github.com/github/gh-aw/actions/workflows/ubuntu-image-analyzer.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/ubuntu-image-analyzer.lock.yml) | - | - |
| [Update Astro](https://github.com/github/gh-aw/blob/main/.github/workflows/update-astro.md) | copilot | [![Update Astro](https://github.com/github/gh-aw/actions/workflows/update-astro.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/update-astro.lock.yml) | - | - |
| [Video Analysis Agent](https://github.com/github/gh-aw/blob/main/.github/workflows/video-analyzer.md) | copilot | [![Video Analysis Agent](https://github.com/github/gh-aw/actions/workflows/video-analyzer.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/video-analyzer.lock.yml) | - | - |
| [Weekly Blog Post Writer](https://github.com/github/gh-aw/blob/main/.github/workflows/weekly-blog-post-writer.md) | copilot | [![Weekly Blog Post Writer](https://github.com/github/gh-aw/actions/workflows/weekly-blog-post-writer.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/weekly-blog-post-writer.lock.yml) | - | - |
@@ -0,0 +1 @@
legacy-peer-deps=true
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.

[aw] Documentation Unbloat failed

3 participants