Resolve GitHub Actions pnpm conflict and enable PR workflow validation#136
Resolve GitHub Actions pnpm conflict and enable PR workflow validation#136SanderElias with Copilot wants to merge 5 commits into
Conversation
|
@copilot can you run the actions to check if those now work without errors, while still deploying to github pages? |
Done in commit I updated the workflow to run on The workflow run was triggered for this PR: https://github.com/SanderElias/Samples/actions/runs/27147608496 |
|
@copilot it was approved, and failed |
Fixed in commit The failure was because A new run was triggered: https://github.com/SanderElias/Samples/actions/runs/27148168908 |
Fixed in commit That job failed at |
GitHub Actions was failing in
pnpm/action-setupbecause pnpm was declared twice with different specificity (version: 11in workflow vspackageManager: pnpm@11.5.2inpackage.json). This change removes the conflicting declarations so CI uses a single pnpm source of truth, and updates workflow triggering so the fix can be validated on pull requests without changing GitHub Pages deploy behavior.Root cause addressed
pnpm/action-setupusage in.github/workflows/action.yml(buildanddeployjobs), whereversion: 11caused mismatch checks to fail.Workflow simplification
.github/build-artifacts→.github/module-cache), which already derives pnpm frompackage.json#packageManager.PR validation + deploy safety
pull_requesttrigger formainso Actions run on PRs.deployjob withif: github.event_name == 'push'so GitHub Pages deployment still only happens on push tomain.Resulting behavior
ERR_PNPM_BAD_PM_VERSION-style setup failures.