nodeRuns
nodeRuns(
input:WithMeta<NodeRunsInput>):NodeRunsModel
Create a Node.js runs model.
Defines the runs section of a JavaScript/TypeScript action, specifying
the Node.js version, entry-point script, and optional pre/post hooks.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Node.js runs configuration and optional metadata. |
Returns
Section titled “Returns”NodeRunsModel
A branded NodeRunsModel.
Example
Section titled “Example”const runs = nodeRuns({ using: "node20", main: "dist/index.js", post: "dist/cleanup.js",});