mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-12 22:50:54 +03:00
Rename generate-version.js to get-release-version.js
This commit is contained in:
parent
6861d68f81
commit
be3077a88c
@ -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}`)
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user