You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,21 +90,31 @@ steps:
90
90
- run: npm test
91
91
```
92
92
93
-
When using the `package.json` input, the action will look for `volta.node` first. If `volta.node` isn't defined, then it will look for `engines.node`.
93
+
When using the `package.json` input, the action will look in the following fields for a specified Node version:
94
+
1. It checks `volta.node` first.
95
+
2. Then it checks `devEngines.runtime` for an entry with `"name": "node"`.
96
+
3. Then it will look for `engines.node`.
97
+
4. Otherwise it tries to resolve the file defined by [`volta.extends`](https://docs.volta.sh/advanced/workspaces)
98
+
and look for `volta.node`, `devEngines.runtime`, or `engines.node` recursively.
99
+
94
100
95
101
```json
96
102
{
97
103
"engines": {
98
-
"node": ">=16.0.0"
104
+
"node": "^22 || ^24"
105
+
},
106
+
"devEngines": {
107
+
"runtime": {
108
+
"name": "node",
109
+
"version": "^24.3"
110
+
}
99
111
},
100
112
"volta": {
101
-
"node": "16.0.0"
113
+
"node": "24.11.1"
102
114
}
103
115
}
104
116
```
105
117
106
-
Otherwise, when [`volta.extends`](https://docs.volta.sh/advanced/workspaces) is defined, then it will resolve the corresponding file and look for `volta.node` or `engines.node` recursively.
107
-
108
118
## Architecture
109
119
110
120
You can use any of the [supported operating systems](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners), and the compatible `architecture` can be selected using `architecture`. Values are `x86`, `x64`, `arm64`, `armv6l`, `armv7l`, `ppc64le`, `s390x` (not all of the architectures are available on all platforms).
0 commit comments