You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pnpm as the package manager in a GitHub Action workflow, the environment variable env.VERSION is not properly initialized. This results in the following step failing:
To follow up: the proper fix is just to ensure that packageManager is defined in your package.json. Otherwise, I don't think there is any reason to either:
explicitly define VERSION=latest, which can cause issues for projects that have a defined pnpm version in their package.json
perform some magic to use the lockfileVersion in pnpm-lock.yaml as this is backwards compatible and not necessarily a source of truth of the pnpm version being used.
alipex
added a commit
to alipex/test-web
that referenced
this issue
Mar 17, 2025
When using pnpm as the package manager in a GitHub Action workflow, the environment variable env.VERSION is not properly initialized. This results in the following step failing:
Since env.VERSION is not set, the pnpm/action-setup step does not function correctly.
Potential Cause
The issue appears to stem from the package manager detection logic:
While PACKAGE_MANAGER and LOCKFILE are being assigned, VERSION is not explicitly set, causing workflows that rely on it to break.
The text was updated successfully, but these errors were encountered: