mirror of
https://github.com/pnpm/action-setup.git
synced 2026-07-01 01:21:42 +00:00
build
This commit is contained in:
parent
716d1d94d7
commit
25e7925386
@ -127,10 +127,10 @@ function readTargetVersion(opts: {
|
|||||||
|
|
||||||
const definedVersions = new Set([version, packageManagerVersion, devEnginesVersion].filter(v => v !== undefined))
|
const definedVersions = new Set([version, packageManagerVersion, devEnginesVersion].filter(v => v !== undefined))
|
||||||
if (definedVersions.size > 1) {
|
if (definedVersions.size > 1) {
|
||||||
throw new Error(`Multiple conflicting pnpm versions specified:
|
throw new Error(`Multiple conflicting pnpm versions specified: ${[...definedVersions].join(', ')}
|
||||||
- version ${version} in the GitHub Action config with the key "version"
|
- version ${version ?? "undefined"} in the GitHub Action config with the key "version"
|
||||||
- version ${packageManagerVersion} in the package.json with the key "packageManager"
|
- version ${packageManagerVersion ?? "undefined"} in the package.json with the key "packageManager"
|
||||||
- version ${devEnginesVersion} in the package.json with the key "devEngines.packageManager"
|
- version ${devEnginesVersion ?? "undefined"} in the package.json with the key "devEngines.packageManager"
|
||||||
Remove conflicting versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION`)
|
Remove conflicting versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user