pool:
  name: Azure Pipelines

# Do not trigger on non-PR pushes.
trigger: none

# Trigger on PRs to `main` branch when there are changes in the `ts` folder.
pr:
  branches:
    include:
    - main
  paths:
    include:
    - ts
  autoCancel: true

steps:
- template: typescript-build-steps.yaml

- task: ComponentGovernanceComponentDetection@0
  displayName: Component Governance
