Skip to content

Commit

Permalink
feat: use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
da730 committed Apr 24, 2024
1 parent b179980 commit 21af10d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions common/scripts/apply-release-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const writePrereleaseVersion = require('./set-prerelease-version');
const checkAndUpdateNextBump = require('./version-policies');
const parseVersion = require('./parse-version');


function run() {
const preReleaseName = process.argv.slice(2)[0];
const nextVersionOrNextBump = process.argv.slice(2)[1];
const buildName = process.argv.slice(2)[2];
const nextBump = checkAndUpdateNextBump(nextVersionOrNextBump);
const parsedNextVersion = nextVersionOrNextBump ? parseVersion(nextVersionOrNextBump) : null;
const nextVersion = parsedNextVersion ? `${parsedNextVersion.major}.${parsedNextVersion.minor}.${parsedNextVersion.patch}`: null;

console.log('[apply prerelease version]: ', preReleaseName, nextBump, nextVersion);

writePrereleaseVersion(nextBump, preReleaseName, nextVersion, buildName);
}

run()

0 comments on commit 21af10d

Please sign in to comment.