Skip to main content
Module

x/actionify/mod.ts>Step#run

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
method Step.prototype.run
import { Step } from "https://deno.land/x/actionify@0.2.0/mod.ts";

Runs command-line programs using the operating system's shell. If you do not provide a name, the step name will default to the text specified in the run command.

Commands run using non-login shells by default. You can choose a different shell and customize the shell used to run commands. For more information, see jobs.<job_id>.steps[*].shell.

Each run keyword represents a new process and shell in the runner environment. When you provide multi-line commands, each line runs in the same shell.

import { Step } from 'https://deno.land/x/actionify@0.2.0/mod.ts';

const step = Step
  .create()
  .run('npm install');

Type Parameters

Type extends AnyCommand

Parameters

run: WithContext<Listed<Type | string>, Base, "jobs:jobId:steps:run">

Returns

Step<CombineAsUnion<Base | ExtractCommand<Type>>>