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