Skip to content

Fix pnpm version conflict in CI workflows#204

Merged
hotlong merged 2 commits intomainfrom
copilot/fix-variable-reference-error
Feb 5, 2026
Merged

Fix pnpm version conflict in CI workflows#204
hotlong merged 2 commits intomainfrom
copilot/fix-variable-reference-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

CI failing with ERR_PNPM_BAD_PM_VERSION because workflows explicitly specified pnpm versions that conflicted with packageManager: "pnpm@9.12.3" in package.json.

Changes

  • Removed explicit version field from pnpm/action-setup@v4 in all workflow files
  • Action now auto-detects version from package.json's packageManager field

Affected workflows

  • test.yml - was using version: latest
  • lint.yml - was using version: latest
  • deploy-docs.yml - was using version: 9
  • release.yml - was using version: 9

Single source of truth for pnpm version is now package.json.

Original prompt

引用: https://github.com/objectstack-ai/objectos/actions/runs/21706818027/job/62599947140#step:3:1


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectos Ready Ready Preview, Comment Feb 5, 2026 10:03am

Request Review

…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
Copilot AI requested a review from hotlong February 5, 2026 09:58
@hotlong hotlong marked this pull request as ready for review February 5, 2026 10:29
Copilot AI review requested due to automatic review settings February 5, 2026 10:29
@hotlong hotlong merged commit 77e0ee7 into main Feb 5, 2026
14 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 version field from pnpm/action-setup@v4 in 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants