Skip to content

Reusing code made easy

Create reusable functions directly inside your workflows, in a separate file to import into multiple workflows or even publish to npm to reuse across projects!

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

async function lintNode() {
  await task.docker("Lint node", { image: "node:20" }, () => {
    // ...
  });
}

job("Project 1", () => {
  lintNode();
});

job("Project 2", () => {
  lintNode();
});