Skip to content

Conditions made easy

Need to run things conditionally? Use a JavaScript if statement

ts
import { job, env } from "@pandaci/core";

if (env.PANDA_BRANCH === "main")
  job("Deploy to prod", () => {
    // ...
  });