mirror of
https://gitea.com/actions/setup-node.git
synced 2025-04-08 00:09:43 +00:00
fixing pnpm output issue (#545)
This commit is contained in:
@ -18,7 +18,7 @@ export const supportedPackageManagers: SupportedPackageManagers = {
|
||||
},
|
||||
pnpm: {
|
||||
lockFilePatterns: ['pnpm-lock.yaml'],
|
||||
getCacheFolderCommand: 'pnpm store path'
|
||||
getCacheFolderCommand: 'pnpm store path --silent'
|
||||
},
|
||||
yarn1: {
|
||||
lockFilePatterns: ['yarn.lock'],
|
||||
@ -94,7 +94,7 @@ export const getCacheDirectoryPath = async (
|
||||
|
||||
core.debug(`${packageManager} path is ${stdOut}`);
|
||||
|
||||
return stdOut;
|
||||
return stdOut.trim();
|
||||
};
|
||||
|
||||
export function isGhes(): boolean {
|
||||
|
Reference in New Issue
Block a user