Skip to content

ci: fix pnpm action-setup version source - #7

Merged
ayden94 merged 1 commit into
mainfrom
ci/pnpm-package-manager
Jul 23, 2026
Merged

ci: fix pnpm action-setup version source#7
ayden94 merged 1 commit into
mainfrom
ci/pnpm-package-manager

Conversation

@ayden94

@ayden94 ayden94 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Problem

CI keeps failing on every push to main with:

Error: No pnpm version is specified.
Please specify it by one of the following ways:
  - in the GitHub Action config with the key "version"
  - in the package.json with the key "packageManager"

pnpm/action-setup@v4 requires a pnpm version via either the version input or the packageManager field. .github/workflows/ci.yml does not pass version, and package.json does not declare packageManager, so the action has no source for the version and aborts at the Set up pnpm step.

This is the same root cause that left PR #5 (and earlier docs syncs) red on mainSync Docs passes because it does not use pnpm, but CI and Release both fail before any project step runs.

Fix

Add packageManager: pnpm@10.17.1 to package.json. This is the corepack standard source of truth and matches the version that produced the committed pnpm-lock.yaml (lockfileVersion 9.0).

Verification

  • pnpm install → ok, lockfile unchanged
  • pnpm run typecheck → ok
  • pnpm test → ok (where applicable)

Notes

pnpm/action-setup@v4 requires a pnpm version via either the 'version'
input or the packageManager field in package.json. Without it, CI fails
at 'Set up pnpm' with 'No pnpm version is specified'.

Add packageManager: pnpm@10.17.1 to package.json (matches local
lockfile-producing version, corepack standard). No changeset needed —
dev-only metadata, no published-package impact.
@ayden94
ayden94 merged commit 1542c82 into main Jul 23, 2026
1 check passed
@ayden94
ayden94 deleted the ci/pnpm-package-manager branch July 23, 2026 06:21
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.

1 participant