Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/actions/types.ts>RunsJavascript

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
interface RunsJavascript
import { type RunsJavascript } from "https://deno.land/x/actionify@0.3.0/src/actions/types.ts";

Configures the path to the action's code and the application used to execute the code.

Properties

using: "node12" | "node16"

The application used to execute the code specified in main.

main: string

The file that contains your action code. The application specified in using executes this file.

optional
pre: string

Allows you to run a script at the start of a job, before the main: action begins. For example, you can use pre: to run a prerequisite setup script. The application specified with the using syntax will execute this file. The pre: action always runs by default but you can override this using pre-if.

optional
pre-if: PreIf
optional
post: string

Allows you to run a script at the end of a job, once the main: action has completed. For example, you can use post: to terminate certain processes or remove unneeded files. The application specified with the using syntax will execute this file. The post: action always runs by default but you can override this using post-if.

optional
post-if: PostIf