Skip to content

Commit 2fddd88

Browse files
fixing pnpm output issue (#545)
1 parent ad8542c commit 2fddd88

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/cache-save/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59931,7 +59931,7 @@ exports.supportedPackageManagers = {
5993159931
},
5993259932
pnpm: {
5993359933
lockFilePatterns: ['pnpm-lock.yaml'],
59934-
getCacheFolderCommand: 'pnpm store path'
59934+
getCacheFolderCommand: 'pnpm store path --silent'
5993559935
},
5993659936
yarn1: {
5993759937
lockFilePatterns: ['yarn.lock'],
@@ -59986,7 +59986,7 @@ exports.getCacheDirectoryPath = (packageManagerInfo, packageManager) => __awaite
5998659986
throw new Error(`Could not get cache folder path for ${packageManager}`);
5998759987
}
5998859988
core.debug(`${packageManager} path is ${stdOut}`);
59989-
return stdOut;
59989+
return stdOut.trim();
5999059990
});
5999159991
function isGhes() {
5999259992
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');

dist/setup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71277,7 +71277,7 @@ exports.supportedPackageManagers = {
7127771277
},
7127871278
pnpm: {
7127971279
lockFilePatterns: ['pnpm-lock.yaml'],
71280-
getCacheFolderCommand: 'pnpm store path'
71280+
getCacheFolderCommand: 'pnpm store path --silent'
7128171281
},
7128271282
yarn1: {
7128371283
lockFilePatterns: ['yarn.lock'],
@@ -71332,7 +71332,7 @@ exports.getCacheDirectoryPath = (packageManagerInfo, packageManager) => __awaite
7133271332
throw new Error(`Could not get cache folder path for ${packageManager}`);
7133371333
}
7133471334
core.debug(`${packageManager} path is ${stdOut}`);
71335-
return stdOut;
71335+
return stdOut.trim();
7133671336
});
7133771337
function isGhes() {
7133871338
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');

src/cache-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const supportedPackageManagers: SupportedPackageManagers = {
1818
},
1919
pnpm: {
2020
lockFilePatterns: ['pnpm-lock.yaml'],
21-
getCacheFolderCommand: 'pnpm store path'
21+
getCacheFolderCommand: 'pnpm store path --silent'
2222
},
2323
yarn1: {
2424
lockFilePatterns: ['yarn.lock'],
@@ -94,7 +94,7 @@ export const getCacheDirectoryPath = async (
9494

9595
core.debug(`${packageManager} path is ${stdOut}`);
9696

97-
return stdOut;
97+
return stdOut.trim();
9898
};
9999

100100
export function isGhes(): boolean {

0 commit comments

Comments
 (0)