Pass full version number to release shell scripts
Summary: Scripts now accept full version instead of only patch part of it. Reviewed By: jknoxville Differential Revision: D24782300 fbshipit-source-id: 1c454beb9640a5b38669fe39eab642245b0f0f91
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d8b3ac3e54
commit
dce7422ba6
@@ -201,11 +201,7 @@ export function buildFolder(): Promise<string> {
|
||||
});
|
||||
}
|
||||
export function getVersionNumber() {
|
||||
let {version} = require('../package.json');
|
||||
const buildNumber = process.argv.join(' ').match(/--version=(\d+)/);
|
||||
if (buildNumber && buildNumber.length > 0) {
|
||||
version = [...version.split('.').slice(0, 2), buildNumber[1]].join('.');
|
||||
}
|
||||
const {version} = require('../package.json');
|
||||
return version;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user