Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine Release Creation in GitHub from Azure DevOps Pipelines #72

Open
clarkio opened this issue Feb 27, 2019 · 3 comments
Open

Determine Release Creation in GitHub from Azure DevOps Pipelines #72

clarkio opened this issue Feb 27, 2019 · 3 comments
Labels
help wanted Extra attention is needed research We need to look deeper into this topic

Comments

@clarkio
Copy link
Owner

clarkio commented Feb 27, 2019

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.

@clarkio clarkio added help wanted Extra attention is needed research We need to look deeper into this topic labels Feb 27, 2019
@parithon
Copy link
Collaborator

@parithon
Copy link
Collaborator

parithon commented Feb 27, 2019

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
Copy link

gavinbarron commented Feb 27, 2019

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

Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed research We need to look deeper into this topic
Projects
None yet
Development

No branches or pull requests

3 participants