Fix local builds
This commit is contained in:
parent
17743c577e
commit
1395ebffc7
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
"name": "cider",
|
||||
"applicationId": "Cider",
|
||||
"productName": "Cider",
|
||||
"version": "1.1",
|
||||
"version": "1.1.0",
|
||||
"description": "A new look into listening and enjoying music in style and performance.",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "./build/index.js",
|
||||
|
|
|
@ -8,9 +8,10 @@ let fs = require('fs')
|
|||
var data = fs.readFileSync('package.json');
|
||||
var package = JSON.parse(data);
|
||||
|
||||
pvers = package.version.match(/\d+\./g)
|
||||
|
||||
// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
|
||||
package.version = `${package.version}.${process.env['CIRCLE_BUILD_NUM']}`
|
||||
package.version = `${pvers[0]}.${pvers[1]}.${process.env['CIRCLE_BUILD_NUM']}`
|
||||
|
||||
|
||||
fs.writeFile('package.json', JSON.stringify(package), err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue