Skip to content

Commit 90537a5

Browse files
committed
improve(action): explicit package manager selection
1 parent a7d0501 commit 90537a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
pnpm install
3535
elif [ -f "package-lock.json" ]; then
3636
npm install
37-
else
37+
elif [ -f "yarn.lock" ]; then
3838
yarn_version=$(yarn --version)
3939
yarn_version_major=${yarn_version:0:1}
4040
@@ -43,6 +43,9 @@ runs:
4343
else
4444
yarn install --frozen-lockfile
4545
fi
46+
else
47+
echo "Could not detect which package manager is being used."
48+
exit 1
4649
fi
4750
4851

0 commit comments

Comments
 (0)