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 install
in thebuildAndReleaseTask
folder. - 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 build
andnpm start
from thebuildAndReleaseTask
to 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 package
to build, increment version and create thevsix
file. - Run
tfx login
to authenticate using a PAT token. This requiresPublish Marketplace Images
permissions. - run
tfx extension publish --vsix $PATH_TO_VSIX
to publish to the marketplace.