mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-23 20:48:13 +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))
|
||||
if (definedVersions.size > 1) {
|
||||
throw new Error(`Multiple conflicting pnpm versions specified:
|
||||
- version ${version} in the GitHub Action config with the key "version"
|
||||
- version ${packageManagerVersion} in the package.json with the key "packageManager"
|
||||
- version ${devEnginesVersion} in the package.json with the key "devEngines.packageManager"
|
||||
throw new Error(`Multiple conflicting pnpm versions specified: ${[...definedVersions].join(', ')}
|
||||
- version ${version ?? "undefined"} in the GitHub Action config with the key "version"
|
||||
- version ${packageManagerVersion ?? "undefined"} in the package.json with the key "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`)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user