mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 13:43:48 +00:00
add support for arm64 Windows
This commit is contained in:
parent
b39b52d121
commit
026d4a4820
6 changed files with 63 additions and 14 deletions
4
dist/cache-save/index.js
vendored
4
dist/cache-save/index.js
vendored
|
@ -83333,6 +83333,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
exports.unique = exports.printEnvDetailsAndSetOutput = exports.parseNodeVersionFile = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
const exec = __importStar(__nccwpck_require__(1514));
|
||||
const io = __importStar(__nccwpck_require__(7436));
|
||||
function parseNodeVersionFile(contents) {
|
||||
var _a, _b, _c;
|
||||
let nodeVersion;
|
||||
|
@ -83376,7 +83377,8 @@ function printEnvDetailsAndSetOutput() {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
core.startGroup('Environment details');
|
||||
const promises = ['node', 'npm', 'yarn'].map((tool) => __awaiter(this, void 0, void 0, function* () {
|
||||
const output = yield getToolVersion(tool, ['--version']);
|
||||
const pathTool = yield io.which(tool, false);
|
||||
const output = pathTool ? yield getToolVersion(tool, ['--version']) : '';
|
||||
return { tool, output };
|
||||
}));
|
||||
const tools = yield Promise.all(promises);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue