Skip to content

Commit 7ce3deb

Browse files
authored
Match versions
1 parent b036c0d commit 7ce3deb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/install-pnpm/run.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ async function readTarget(opts: {
5555
}
5656

5757
if (version) {
58-
if (typeof packageManager === 'string') {
58+
if (
59+
typeof packageManager === 'string' &&
60+
packageManager.replace('pnpm@', '') !== version
61+
) {
5962
throw new Error(`Multiple versions of pnpm specified:
6063
- version ${version} in the GitHub Action config with the key "version"
6164
- version ${packageManager} in the package.json with the key "packageManager"

0 commit comments

Comments
 (0)