A custom task that you can include in your pipeline on Azure DevOps.
$ git clone https://github.com/alexalvess/api-coverage-test.git
$ cd api-coverage-test
$ npm install --prefix ./buildAndReleaseTask package.json
$ npm install -g json
$ npm install -g tfx-cli
$ npm run build --prefix ./buildAndReleaseTask
$ npm run copyNodeModules --prefix ./buildAndReleaseTask
$ npm run build --prefix ./buildAndReleaseTask
$ npm run changeEnvironment --prefix ./buildAndReleaseTask
$ npm run copyNodeModules --prefix ./buildAndReleaseTask
$ json -I -f ./buildAndReleaseTask/task.json -e "this.version.Patch++"
$ npm run copyTaskToDist --prefix ./buildAndReleaseTask
$ npm start --prefix ./buildAndReleaseTask
$ tfx extension create --manifest-globs vss-extension.json
And upload the file generate in Visual Studio Market Place
See this extension in Visual Studio Market Place
This custom task was developed by Alex Alves and encouraged by XP Inc.