Skip to content

Fix Astro Pages Build job to resolve package manager in docs workspace - #2

Draft
MarkCodering with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-action-failure
Draft

Fix Astro Pages Build job to resolve package manager in docs workspace#2
MarkCodering with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-action-failure

Conversation

Copilot AI commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

The GitHub Actions Build job was failing because the Astro Pages workflow detected yarn.lock/package.json only at repo root, while the site lives under docs/. This updates workflow path resolution so dependency detection and build execution use the correct workspace.

  • Workflow path configuration

    • Set BUILD_PATH to docs in .github/workflows/astro.yml so all build steps target the Astro project directory.
  • Package manager detection fix

    • Updated detection checks to look in ${{ github.workspace }}/${{ env.BUILD_PATH }} instead of root.
    • This aligns manager detection with existing working-directory: ${{ env.BUILD_PATH }} usage in install/build steps.
  • Relevant workflow change

    env:
      BUILD_PATH: "docs"
    
    if [ -f "${{ github.workspace }}/${{ env.BUILD_PATH }}/yarn.lock" ]; then
      ...
    elif [ -f "${{ github.workspace }}/${{ env.BUILD_PATH }}/package.json" ]; then
      ...
    fi

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build Fix Astro Pages Build job to resolve package manager in docs workspace Jul 19, 2026
Copilot AI requested a review from MarkCodering July 19, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants