Skip to content

Commit 663136c

Browse files
authored
Update metadata-syntax.md for node 24 (#40101)
1 parent 429a824 commit 663136c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/actions/reference/workflows-and-actions/metadata-syntax.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ For more information on how to use context syntax, see [AUTOTITLE](/actions/lear
148148

149149
**Required** Configures the path to the action's code and the runtime used to execute the code.
150150

151-
### Example: Using Node.js v20
151+
### Example: Using Node.js v24
152152

153153
```yaml
154154
runs:
155-
using: 'node20'
155+
using: 'node24'
156156
main: 'main.js'
157157
```
158158

@@ -161,6 +161,7 @@ runs:
161161
**Required** The runtime used to execute the code specified in [`main`](#runsmain).
162162

163163
* Use `node20` for Node.js v20.
164+
* Use `node24` for Node.js v24.
164165

165166
### `runs.main`
166167

@@ -177,7 +178,7 @@ In this example, the `pre:` action runs a script called `setup.js`:
177178

178179
```yaml
179180
runs:
180-
using: 'node20'
181+
using: 'node24'
181182
pre: 'setup.js'
182183
main: 'index.js'
183184
post: 'cleanup.js'
@@ -204,7 +205,7 @@ In this example, the `post:` action runs a script called `cleanup.js`:
204205

205206
```yaml
206207
runs:
207-
using: 'node20'
208+
using: 'node24'
208209
main: 'index.js'
209210
post: 'cleanup.js'
210211
```

0 commit comments

Comments
 (0)