Heavily based on https://github.com/dagger/dagger-for-github
cd dagger-for-azure-devops
npm install
npm install typescript@4.0.2 -g --save-dev
npm i -g @vercel/ncc
npm i -g tfx-cli
tsc
ncc build src/main.js --license licenses.txt
Edit vss-extension.json to point to your own publisher https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task is a useful page
cd ..
tfx extension create --manifest-globs vss-extension.json
# File: azure-pipelines.yml
pool:
vmImage: 'ubuntu-latest'
steps:
- task: dagger@0
inputs:
args: 'do build'