Skip to content

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.

Parameter Type Description

input

WithMeta<NodeRunsInput>

Node.js runs configuration and optional metadata.

NodeRunsModel

A branded NodeRunsModel.

const runs = nodeRuns({
using: "node20",
main: "dist/index.js",
post: "dist/cleanup.js",
});