mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-10 14:11:11 +00:00
win change
This commit is contained in:
parent
5e5ef8fd55
commit
1b2d431484
3 changed files with 11 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -13014,7 +13014,9 @@ function getNode(versionSpec, stable, token) {
|
|||
let extPath;
|
||||
if (osPlat == 'win32') {
|
||||
let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
|
||||
extPath = yield tc.extract7z(downloadPath, undefined, _7zPath);
|
||||
// 7z extracts to filename folder
|
||||
const srcPath = path.join(downloadPath, `node-v${info.resolvedVersion}-win-${osArch}`);
|
||||
extPath = yield tc.extract7z(srcPath, undefined, _7zPath);
|
||||
}
|
||||
else {
|
||||
extPath = yield tc.extractTar(downloadPath, undefined, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue