Remove unused VERSION from nightly pipeline (#5812)
This commit is contained in:
Родитель
3e55c2785f
Коммит
8f02313d43
|
@ -39,7 +39,6 @@ extends:
|
|||
|
||||
- script: >
|
||||
node ./scripts/prepare-nightly-build.js
|
||||
-v "%VERSION%"
|
||||
displayName: Generate package.json
|
||||
|
||||
- script: |
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
const fs = require('fs');
|
||||
const argv = require('minimist')(process.argv.slice(2));
|
||||
|
||||
const json = JSON.parse(fs.readFileSync('./package.json').toString());
|
||||
const stableVersion = json.version.match(/(\d+)\.(\d+)\.(\d+)/);
|
||||
|
@ -21,14 +20,11 @@ function prependZero(number) {
|
|||
// update name, publisher and description
|
||||
// calculate version
|
||||
// If the format of the patch version is ever changed, the isPreRelease utility function should be updated.
|
||||
let patch = argv['v'];
|
||||
if (typeof patch !== 'string') {
|
||||
const date = new Date();
|
||||
const month = date.getMonth() + 1;
|
||||
const day = date.getDate();
|
||||
const hours = date.getHours();
|
||||
patch = `${date.getFullYear()}${prependZero(month)}${prependZero(day)}${prependZero(hours)}`;
|
||||
}
|
||||
const date = new Date();
|
||||
const month = date.getMonth() + 1;
|
||||
const day = date.getDate();
|
||||
const hours = date.getHours();
|
||||
const patch = `${date.getFullYear()}${prependZero(month)}${prependZero(day)}${prependZero(hours)}`;
|
||||
|
||||
// The stable version should always be <major>.<minor_even_number>.patch
|
||||
// For the nightly build, we keep the major, make the minor an odd number with +1, and add the timestamp as a patch.
|
||||
|
|
Загрузка…
Ссылка в новой задаче