dify - 💡(How to fix) Fix autofix.ci fails generating frontend contracts because pnpm is unavailable [2 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

autofix.ci can fail in the Generate frontend contracts step with pnpm: command not found after the shared web setup action runs.

Observed in PR #36313:

Root Cause

autofix.ci can fail in the Generate frontend contracts step with pnpm: command not found after the shared web setup action runs.

Observed in PR #36313:

Fix Action

Fixed

Code Example

pnpm --dir packages/contracts gen-api-contract-from-openapi

---

/home/runner/work/_temp/1a3660cf-f478-4b2a-babb-bd3a895ac437.sh: line 1: pnpm: command not found
Process completed with exit code 127.
RAW_BUFFERClick to expand / collapse

Summary

autofix.ci can fail in the Generate frontend contracts step with pnpm: command not found after the shared web setup action runs.

Observed in PR #36313:

Failure

The workflow runs:

pnpm --dir packages/contracts gen-api-contract-from-openapi

The job exits with:

/home/runner/work/_temp/1a3660cf-f478-4b2a-babb-bd3a895ac437.sh: line 1: pnpm: command not found
Process completed with exit code 127.

Likely Cause

.github/actions/setup-web installs dependencies through Vite+ (vp install), but the later autofix step invokes raw pnpm. In this runner environment, pnpm is not on PATH after setup, while the rest of the web workflows generally run commands through vp.

Expected Behavior

The frontend contract generation step should use the same Vite+ managed environment as the rest of the workflow so autofix.ci can complete and commit generated changes when needed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix autofix.ci fails generating frontend contracts because pnpm is unavailable [2 pull requests]