Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ For more information on how to use context syntax, see [AUTOTITLE](/actions/lear

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

### Example: Using Node.js v20
### Example: Using Node.js v24

```yaml
runs:
using: 'node20'
using: 'node24'
main: 'main.js'
```

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

* Use `node20` for Node.js v20.
* Use `node24` for Node.js v24.

### `runs.main`

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

```yaml
runs:
using: 'node20'
using: 'node24'
pre: 'setup.js'
main: 'index.js'
post: 'cleanup.js'
Expand All @@ -204,7 +205,7 @@ In this example, the `post:` action runs a script called `cleanup.js`:

```yaml
runs:
using: 'node20'
using: 'node24'
main: 'index.js'
post: 'cleanup.js'
```
Expand Down
Loading