- Dynamic CI as a first class feature
// .hackci/build.ts
import hackci from "@hackci/sdk";
const context = hackci.invocationContext();
if (context.event !== "push") {
return null;
}
const buildAndTest = new hackci.WorkGroup();
const clone = hackci.clone();
const build = new hackci.Task();
build.workspace(clone.workspace());
build.addStep({
command: "npm run build",
image: "nodejs:22",
});
export default [buildAndTest];