Fix pnpm version conflict in CI workflows#204
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…anager field Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix variable reference error in code
Fix pnpm version conflict in CI workflows
Feb 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes CI workflow failures caused by version conflicts between explicitly specified pnpm versions in GitHub Actions workflows and the packageManager field in package.json. The fix removes redundant version specifications to establish a single source of truth.
Changes:
- Removed explicit
versionfield frompnpm/action-setup@v4in all four affected workflow files - The action now auto-detects the pnpm version from the
packageManager: "pnpm@9.12.3"field in package.json
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/test.yml |
Removed version: latest from pnpm setup to use package.json version |
.github/workflows/lint.yml |
Removed version: latest from pnpm setup to use package.json version |
.github/workflows/deploy-docs.yml |
Removed version: 9 from pnpm setup to use package.json version |
.github/workflows/release.yml |
Removed version: 9 from pnpm setup to use package.json version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI failing with
ERR_PNPM_BAD_PM_VERSIONbecause workflows explicitly specified pnpm versions that conflicted withpackageManager: "pnpm@9.12.3"in package.json.Changes
versionfield frompnpm/action-setup@v4in all workflow filespackageManagerfieldAffected workflows
test.yml- was usingversion: latestlint.yml- was usingversion: latestdeploy-docs.yml- was usingversion: 9release.yml- was usingversion: 9Single source of truth for pnpm version is now package.json.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.