mirror of
https://github.com/pnpm/action-setup.git
synced 2025-03-15 07:04:34 +08:00
Match versions
This commit is contained in:
parent
b036c0dcb9
commit
7ce3debe10
@ -55,7 +55,10 @@ async function readTarget(opts: {
|
||||
}
|
||||
|
||||
if (version) {
|
||||
if (typeof packageManager === 'string') {
|
||||
if (
|
||||
typeof packageManager === 'string' &&
|
||||
packageManager.replace('pnpm@', '') !== version
|
||||
) {
|
||||
throw new Error(`Multiple versions of pnpm specified:
|
||||
- version ${version} in the GitHub Action config with the key "version"
|
||||
- version ${packageManager} in the package.json with the key "packageManager"
|
||||
|
Loading…
x
Reference in New Issue
Block a user