Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Fluent Azure Pipelines

deno module deno compatibility

Fluent Azure Pipelines is a deno module for generating Azure Pipelines configuration (azure-pipelines.yml) files easily and fluently.

πŸš€ Usage

import { AzurePipeline } from "https://deno.land/x/fluent_azure_pipelines/mod.ts";

const azurePipeline = new AzurePipeline();

azurePipeline
  .trigger(["master"])
  .pool({
    name: "Default",
    vmImage: "ubuntu-latest",
  })
  .step({
    task: "NodeTool@0",
    inputs: {
      versionSpec: "18.x",
    },
  })
  .step({
    script: "npm ci",
    displayName: "Install dependencies",
  })
  .step({
    script: "node index.mjs",
    displayName: "Run Dagger",
  });

azurePipeline.save("azure-pipelines.yml");