Fix local builds (#375)
This commit is contained in:
parent
6b331cb22f
commit
207c4435bb
3 changed files with 6 additions and 5 deletions
|
@ -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