11
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2026-05-24 05:11:53 +00:00

feat: add support for mise.toml file

This commit is contained in:
Gustavo Perdomo 2025-10-22 00:25:58 -03:00
parent 86d7342e00
commit d8469e87d5
No known key found for this signature in database
4 changed files with 19 additions and 6 deletions

7
dist/setup/index.js vendored
View file

@ -84097,7 +84097,7 @@ function getNodeVersionFromFile(versionFilePath) {
catch {
core.info('Node version file is not JSON file');
}
// Try parsing the file as an MISE `mise.toml` file.
// Try parsing the file as a mise `mise.toml` file.
try {
const manifest = (0, js_toml_1.load)(contents);
if (manifest?.tools?.node) {
@ -84105,7 +84105,10 @@ function getNodeVersionFromFile(versionFilePath) {
if (typeof node === 'object' && node?.version) {
return node.version;
}
return node;
if (typeof node === 'string') {
return node;
}
return null;
}
}
catch {