This task is for installing the Pulumi cli on Azure DevOps Agents.
There are a few tools that need to be installed prior to local development
- Node.js
- Npm
- tslint
- typescript
- tfx-cli (for publishing)
- run
npm installin thebuildAndReleaseTaskfolder. - set 2 variables required to run the task
agent.ToolsDirectory- Location to store the pulumi cliagent.TempDirectory- Location for temporary download/extract files for the task.
- run
npm buildandnpm startfrom thebuildAndReleaseTaskto compile the typescript and start the task.
Alternatively there is a launch.json in the .vscode folder which can be used to start F5 debugging for vs code. This contains a default folder path for the tools and temporary directories.
Make sure you have built and compiled from the previous step.
- From the root folder, run
npm run packageto build, increment version and create thevsixfile. - Run
tfx loginto authenticate using a PAT token. This requiresPublish Marketplace Imagespermissions. - run
tfx extension publish --vsix $PATH_TO_VSIXto publish to the marketplace.