clarkio / vscode-twitch-highlighter

This is a VS Code extension that will allow your Twitch chat to highlight a line of code via a command message. Example: `!line 8 server.js`. See master branch README.md for more details
https://clarkio.com
203 stars 14 forks source link

Determine Release Creation in GitHub from Azure DevOps Pipelines #72

Open clarkio opened 5 years ago

clarkio commented 5 years ago

Right now I have to still manually publish the release in GitHub. The thought behind doing that is in case people would prefer to install from there and to keep a separate backup/history of the versions between packages.

It would be nice to automate this (I'm confident it's possible) process as part of the pipelines somehow.

parithon commented 5 years ago

Here are some docs on how to accomplish this goal:

https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/github-release?view=azure-devops

parithon commented 5 years ago

We could do the following to update the <major>.<minor>.<patch> version of the package.json prior to publishing to the Marketplace, then pull that change out to create the Github release tag.

Updates the version from 0.1.4 (current version as of this comment) to 0.1.5:

vsce publish patch
version=$(node -p "require('./package.json').version")
gavinbarron commented 5 years ago

You can then add that captured variable to your pipeline using this `echo "##vso[task.setvariable variable=packageVersion]$version"

Documentation