Skip to content

Commit

Permalink
Match versions
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Apr 19, 2024
1 parent b036c0d commit 7ce3deb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/install-pnpm/run.ts
Expand Up @@ -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"
Expand Down

0 comments on commit 7ce3deb

Please sign in to comment.