Azure DevOps Pipeline Generator

Generate customized Azure DevOps pipeline YAML files for your CI/CD needs. Answer the questions on the left to see your pipeline configuration update in real-time.

Configure CI Pipeline

CI Pipeline Preview

# Azure DevOps CI Pipeline for nodejs
# Generated by Azure DevOps Pipeline Generator

trigger:
  branches:
    include:
      - main

pool:
  vmImage: 'ubuntu-latest'

variables:
  npm_config_cache: $(Pipeline.Workspace)/.npm
steps:
- checkout: self
- task: Cache@2
  inputs:
    key: 'npm | "$(Agent.OS)" | package-lock.json'
    restoreKeys: |
      npm | "$(Agent.OS)"
    path: $(npm_config_cache)
  displayName: 'Cache npm packages'

- task: NodeTool@0
  inputs:
    versionSpec: '18.x'
  displayName: 'Install Node.js'

- script: npm ci
  displayName: 'Install dependencies'

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact: drop'
  inputs:
    PathtoPublish: '$(System.DefaultWorkingDirectory)/dist'
    ArtifactName: 'drop'
    publishLocation: 'Container'