Skip to content

ci: install pnpm in docs release workflow#1871

Merged
vdusek merged 1 commit intomasterfrom
fix/docs-release-install-pnpm
May 5, 2026
Merged

ci: install pnpm in docs release workflow#1871
vdusek merged 1 commit intomasterfrom
fix/docs-release-install-pnpm

Conversation

@vdusek
Copy link
Copy Markdown
Collaborator

@vdusek vdusek commented May 5, 2026

Description

The Doc release workflow (example failing run) runs uv run poe build-docs, which shells out to ./build_api_reference.sh && pnpm install && uv run pnpm build inside website/. The runner sets up Node but does not install pnpm, so the step fails with:

/usr/bin/sh: 1: pnpm: not found
##[error]Process completed with exit code 127.

The pnpm install step was lost when the docs release workflow was extracted in #1846.

Changes

  • Add the missing Install pnpm and website dependencies step using apify/workflows/pnpm-install@main, matching the pattern already used in manual_version_docs.yaml.

The docs release workflow runs `uv run poe build-docs`, which shells out
to `pnpm`, but pnpm was not installed on the runner — causing the job to
fail with `pnpm: not found`. Add the missing pnpm install step, matching
the pattern already used in `manual_version_docs.yaml`.
@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels May 5, 2026
@vdusek vdusek self-assigned this May 5, 2026
@github-actions github-actions Bot added this to the 140th sprint - Tooling team milestone May 5, 2026
@vdusek vdusek merged commit 65bf68d into master May 5, 2026
30 checks passed
@vdusek vdusek deleted the fix/docs-release-install-pnpm branch May 5, 2026 11:51
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.54%. Comparing base (6b91edc) to head (f0e7cac).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1871   +/-   ##
=======================================
  Coverage   92.53%   92.54%           
=======================================
  Files         158      158           
  Lines       11078    11078           
=======================================
+ Hits        10251    10252    +1     
+ Misses        827      826    -1     
Flag Coverage Δ
unit 92.54% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

vdusek added a commit that referenced this pull request May 6, 2026
### Description

The scheduled E2E tests workflow has been failing on every matrix job at
the **Install dependencies** step (latest example: [run
25421420663](https://github.com/apify/crawlee-python/actions/runs/25421420663)).

`npm install -g apify-cli` now fails because the published `apify-cli`
package ships a `preinstall` hook (`npx only-allow pnpm`) that refuses
non-pnpm installs. On the GitHub runners that hook can't auto-fetch
`only-allow` and exits before any test runs:

```
npm error code 127
npm error path /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/apify-cli
npm error command sh -c npx only-allow pnpm
npm error sh: 1: only-allow: not found
```

### Changes

- Add a `Setup pnpm` step using `pnpm/action-setup@v4`.
- Install `apify-cli` globally via `pnpm add -g apify-cli` instead of
`npm install -g`.

This mirrors the pnpm-based approach already adopted by the docs
workflows in #1871.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants