From 13d12caaccefcfd82768bfa59a34c7ffede5aa58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Mon, 21 Oct 2024 15:29:38 +0200 Subject: [PATCH] docs: try to fix the CI documentation build (#607) Semi-reverts latest changes to the CI setup to fix the docs build. --- .github/workflows/build_and_deploy_docs.yaml | 16 ---------------- Makefile | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/build_and_deploy_docs.yaml b/.github/workflows/build_and_deploy_docs.yaml index ba02ac44b..9260b0d1a 100644 --- a/.github/workflows/build_and_deploy_docs.yaml +++ b/.github/workflows/build_and_deploy_docs.yaml @@ -31,22 +31,6 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: Install Node dependencies - run: | - npm install - npm update @apify/docs-theme - working-directory: ./website - - # We do this as early as possible to prevent conflicts if someone else would push something in the meantime - - name: Commit the updated package.json and lockfile - run: | - git config user.name 'GitHub Actions' - git config user.email 'github-actions[bot]@users.noreply.github.com' - git add website/package.json - git add website/package-lock.json - git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true - git push - - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/Makefile b/Makefile index 66f4201f3..bf561030e 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ build-api-reference: cd website && poetry run ./build_api_reference.sh build-docs: - cd website && yarn && yarn build + cd website && corepack enable && yarn && yarn build run-doc: build-api-reference cd website && corepack enable && yarn && yarn start