This commit is contained in:
Marina Skripnik
2026-02-25 19:16:17 +05:00
committed by GitHub
4 changed files with 8 additions and 7 deletions

View File

@@ -71918,7 +71918,7 @@ function getNodeVersionFromFile(versionFilePath) {
}
async function printEnvDetailsAndSetOutput() {
core.startGroup('Environment details');
const promises = ['node', 'npm', 'yarn'].map(async (tool) => {
const promises = ['node', 'npm', 'yarn', 'pnpm'].map(async (tool) => {
const pathTool = await io.which(tool, false);
const output = pathTool ? await getToolVersion(tool, ['--version']) : '';
return { tool, output };

2
dist/setup/index.js vendored
View File

@@ -82456,7 +82456,7 @@ function getNodeVersionFromFile(versionFilePath) {
}
async function printEnvDetailsAndSetOutput() {
core.startGroup('Environment details');
const promises = ['node', 'npm', 'yarn'].map(async (tool) => {
const promises = ['node', 'npm', 'yarn', 'pnpm'].map(async (tool) => {
const pathTool = await io.which(tool, false);
const output = pathTool ? await getToolVersion(tool, ['--version']) : '';
return { tool, output };