Rename generate-version.js to get-release-version.js

This commit is contained in:
David Wilson 2018-07-26 10:41:52 -07:00
parent 6861d68f81
commit be3077a88c
4 changed files with 2 additions and 13 deletions

View File

@ -1,11 +0,0 @@
const path = require('path')
const repositoryRootPath = path.resolve(__dirname, '..', '..')
const appMetadata = require(path.join(repositoryRootPath, 'package.json'))
const releaseVersion = appMetadata.version
// Set our ReleaseVersion build variable and update VSTS' build number to
// include the version. Writing these strings to stdout causes VSTS to set
// the associated variables.
console.log(`##vso[task.setvariable variable=ReleaseVersion;isOutput=true]${releaseVersion}`)
console.log(`##vso[build.updatebuildnumber]${releaseVersion}+${process.env.BUILD_BUILDNUMBER}`)

View File

@ -8,7 +8,7 @@ phases:
cd script\vsts
npm install
displayName: npm install
- script: node script\vsts\generate-version.js --nightly
- script: node script\vsts\get-release-version.js --nightly
name: Version
# Import OS-specific build definitions

View File

@ -11,7 +11,7 @@ phases:
cd script\vsts
npm install
displayName: npm install
- script: node script\vsts\get-version.js
- script: node script\vsts\get-release-version.js
name: Version
# Import OS-specific build definitions