parent
eea2d238ca
commit
ba4c5247cd
|
@ -24,12 +24,13 @@ pool:
|
|||
steps:
|
||||
# tag CI-produced packages with a version number pointing to the commit which was built.
|
||||
# for PRs, also include the PR #.
|
||||
# Temporary remove ci naming for non pr builds
|
||||
- bash: |
|
||||
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
||||
if [ -n "$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER" ]; then
|
||||
VERSION_STRING=${PACKAGE_VERSION}-pr-${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER}-$(git rev-parse --short HEAD)
|
||||
else
|
||||
VERSION_STRING=${PACKAGE_VERSION}-ci-$(git rev-parse --short HEAD)
|
||||
VERSION_STRING=${PACKAGE_VERSION}
|
||||
fi
|
||||
npm --no-git-tag-version version $VERSION_STRING
|
||||
echo "##vso[build.updatebuildnumber]${VERSION_STRING}_${BUILD_BUILDID}"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "openhab",
|
||||
"displayName": "openHAB",
|
||||
"description": "Robust tool for openHAB textual configurations. Includes code snippets, syntax highlighting, language server integration and more.",
|
||||
"version": "0.8.0-beta",
|
||||
"version": "0.8.0",
|
||||
"publisher": "openhab",
|
||||
"icon": "openhab.png",
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in New Issue