diff --git a/dist/setup/index.js b/dist/setup/index.js index 59304fc3..54f21da5 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -93199,6 +93199,11 @@ class BaseDistribution { info = info || {}; // satisfy compiler, never null when reaches here if (this.osPlat == 'win32') { const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z'; + // Rename archive to add extension because after downloading + // archive does not contain extension type and it leads to some issues + // on Windows runners without PowerShell Core. + // + // For default PowerShell Windows it should contain extension type to unpack it. if (extension === '.zip') { const renamedArchive = `${downloadPath}.zip`; fs_1.default.renameSync(downloadPath, renamedArchive); diff --git a/src/distributions/base-distribution.ts b/src/distributions/base-distribution.ts index 67b96596..cf5bb544 100644 --- a/src/distributions/base-distribution.ts +++ b/src/distributions/base-distribution.ts @@ -220,6 +220,11 @@ export default abstract class BaseDistribution { info = info || ({} as INodeVersionInfo); // satisfy compiler, never null when reaches here if (this.osPlat == 'win32') { const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z'; + // Rename archive to add extension because after downloading + // archive does not contain extension type and it leads to some issues + // on Windows runners without PowerShell Core. + // + // For default PowerShell Windows it should contain extension type to unpack it. if (extension === '.zip') { const renamedArchive = `${downloadPath}.zip`; fs.renameSync(downloadPath, renamedArchive);