Skip to content

Fix Deploy workflow failure caused by npm peer dependency resolution#322

Merged
maxulysse merged 1 commit intomainfrom
copilot/fix-deploy-action
Apr 23, 2026
Merged

Fix Deploy workflow failure caused by npm peer dependency resolution#322
maxulysse merged 1 commit intomainfrom
copilot/fix-deploy-action

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 23, 2026

Recent Deploy runs started failing during dependency install: the Astro deploy action path executes npm install, which now fails with ERESOLVE on the @astrojs/check / TypeScript 6 peer constraint. This updates the deploy build path to use the same install strategy already used in CI.

  • Workflow change: replace withastro/action with explicit build steps

    • Setup Node 24 via actions/setup-node
    • Install dependencies with npm ci --legacy-peer-deps
    • Build with npm run build
    • Upload dist via actions/upload-pages-artifact
  • Behavioral impact

    • Deploy now uses lockfile-based installs with legacy peer handling, avoiding the peer-resolution failure introduced by plain npm install.
    • Artifact upload/deploy flow remains the same (deploy-pages job unchanged).
- name: Install dependencies
  run: npm ci --legacy-peer-deps

- name: Build site
  run: npm run build

- name: Upload Pages artifact
  uses: actions/upload-pages-artifact@v5
  with:
    path: ./dist

@maxulysse maxulysse merged commit 71a1a37 into main Apr 23, 2026
2 checks passed
@maxulysse maxulysse deleted the copilot/fix-deploy-action branch April 23, 2026 11:14
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