fix version json
This commit is contained in:
parent
a6de628132
commit
4bd343ab3e
@ -23,8 +23,8 @@ async function run() {
|
|||||||
console.log('Branch: release');
|
console.log('Branch: release');
|
||||||
await fs.writeFile('./commit.txt', currentCommitHash);
|
await fs.writeFile('./commit.txt', currentCommitHash);
|
||||||
const version = await fs.readFile('./version.txt', 'utf-8');
|
const version = await fs.readFile('./version.txt', 'utf-8');
|
||||||
console.log('Version from version.txt:', version.trim());
|
const nextVersion = version.trim();
|
||||||
return;
|
console.log('Version from version.txt:', nextVersion);
|
||||||
} else {
|
} else {
|
||||||
console.log('Branch: master');
|
console.log('Branch: master');
|
||||||
const prereleaseComponents = semver.prerelease(currentVersion);
|
const prereleaseComponents = semver.prerelease(currentVersion);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user