From 8806b4bde456b88aa7c88b85f4e56e838547f9ff Mon Sep 17 00:00:00 2001 From: Gustavo Perdomo Date: Thu, 30 Jul 2026 23:51:33 -0400 Subject: [PATCH] feat: added docs and improved tests --- .github/workflows/versions.yml | 2 +- __tests__/data/mise.toml | 2 ++ action.yml | 2 +- docs/advanced-usage.md | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 __tests__/data/mise.toml diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index e44d3c9e..63103754 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -158,7 +158,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel] node-version-file: - [.nvmrc, .tool-versions, .tool-versions-node, package.json] + [.nvmrc, .tool-versions, .tool-versions-node, package.json, mise.toml] steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Setup node from node version file diff --git a/__tests__/data/mise.toml b/__tests__/data/mise.toml new file mode 100644 index 00000000..c12a0302 --- /dev/null +++ b/__tests__/data/mise.toml @@ -0,0 +1,2 @@ +[tools] +node = "26.5.0" diff --git a/action.yml b/action.yml index dc1cefd5..31057efa 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ inputs: node-version: description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.' node-version-file: - description: 'File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .tool-versions.' + description: 'File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .tool-versions, mise.toml.' architecture: description: 'Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.' check-latest: diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 2010c595..7077d297 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -76,7 +76,7 @@ steps: ## Node version file -The `node-version-file` input accepts a path to a file containing the version of Node.js to be used by a project, for example `.nvmrc`, `.node-version`, `.tool-versions`, or `package.json`. If both the `node-version` and the `node-version-file` inputs are provided then the `node-version` input is used. +The `node-version-file` input accepts a path to a file containing the version of Node.js to be used by a project, for example `.nvmrc`, `.node-version`, `.tool-versions`, `mise.toml`, or `package.json`. If both the `node-version` and the `node-version-file` inputs are provided then the `node-version` input is used. See [supported version syntax](https://github.com/actions/setup-node#supported-version-syntax). > The action will search for the node version file relative to the repository root.