From 8004fc815dacad8aeb3e140b1a63a39b8e399849 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Wed, 3 Jun 2026 11:57:14 +0200 Subject: [PATCH] ci: run docs versioning commands through uv run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pnpm migration (#855) dropped the uv run wrapper around the docusaurus docs:version/api:version commands. The typedoc-api plugin spawns a bare python to generate the API reference dump, which needs pydoc-markdown from the project venv — without uv run the script fails and the Version docs job (and the dependent Doc release) breaks, leaving the docs site on the old version. This is why the 3.4.0 and 3.4.1 releases never updated the docs. --- .github/workflows/manual_version_docs.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual_version_docs.yaml b/.github/workflows/manual_version_docs.yaml index 66a2838b..662cb104 100644 --- a/.github/workflows/manual_version_docs.yaml +++ b/.github/workflows/manual_version_docs.yaml @@ -120,10 +120,12 @@ jobs: echo "No existing versions found for major $MAJOR_VERSION, nothing to remove" fi - # Build API reference and create Docusaurus version snapshots. + # Build API reference and create Docusaurus version snapshots. The Docusaurus commands must run + # through `uv run` so that the project virtual environment is on PATH — the typedoc-api plugin + # spawns `python` to generate the API reference dump and needs `pydoc-markdown` to be importable. bash build_api_reference.sh - pnpm exec docusaurus docs:version "$MAJOR_MINOR_VERSION" - pnpm exec docusaurus api:version "$MAJOR_MINOR_VERSION" + uv run pnpm exec docusaurus docs:version "$MAJOR_MINOR_VERSION" + uv run pnpm exec docusaurus api:version "$MAJOR_MINOR_VERSION" - name: Commit and push versioned docs uses: apify/actions/signed-commit@v1.2.0