Skip to content

CI fails on pull requests from forks: pnpm version not resolved #292

Description

@MateoLostanlen

Problem

The test job fails immediately on pull requests opened from forks, with:

Error: No pnpm version is specified.

Example: PR #271 (failing run). All PRs from internal branches pass, only fork PRs are affected. The Vercel check fails on forks too, for a separate reason (authorization).

Cause

.github/workflows/tests.yml pins pnpm via ${{ vars.PNPM_VERSION }}. GitHub does not expose repository variables to workflows triggered by pull_request events from forks, so the version resolves to an empty string and pnpm/action-setup aborts before installing anything.

Proposed fix

Add a "packageManager": "pnpm@<version>" field to package.json. It is the standard fallback for pnpm/action-setup, works for forks, and enables corepack locally. Alternatively, add a fallback in the workflow: version: ${{ vars.PNPM_VERSION || '<version>' }}.

This currently blocks CI for all external contributions.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions