init auto release project
This commit is contained in:
parent
5d517e3b08
commit
89caa353b7
2
release/dist/index.js
vendored
2
release/dist/index.js
vendored
@ -33298,9 +33298,11 @@ function getNewestRelease(releases) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let version = semVerParser(initialVersion);
|
let version = semVerParser(initialVersion);
|
||||||
|
console.log(`Initial version ${version}`);
|
||||||
|
|
||||||
for (let release of releases) {
|
for (let release of releases) {
|
||||||
let releaseVersion = semVerParser(release.tag_name);
|
let releaseVersion = semVerParser(release.tag_name);
|
||||||
|
console.log(`Initial releaseVersion ${releaseVersion}`);
|
||||||
|
|
||||||
if (isSemVerGreater(releaseVersion, version)) {
|
if (isSemVerGreater(releaseVersion, version)) {
|
||||||
version = releaseVersion;
|
version = releaseVersion;
|
||||||
|
@ -41,7 +41,6 @@ function getNewestRelease(releases) {
|
|||||||
const initialVersion = core.getInput("initial-version");
|
const initialVersion = core.getInput("initial-version");
|
||||||
|
|
||||||
const semVerParser = (version) => {
|
const semVerParser = (version) => {
|
||||||
console.log(version.replace("v", "").split("."));
|
|
||||||
return version.replace("v", "").split(".").map(parseInt);
|
return version.replace("v", "").split(".").map(parseInt);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -54,9 +53,11 @@ function getNewestRelease(releases) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let version = semVerParser(initialVersion);
|
let version = semVerParser(initialVersion);
|
||||||
|
console.log(`Initial version ${version}`);
|
||||||
|
|
||||||
for (let release of releases) {
|
for (let release of releases) {
|
||||||
let releaseVersion = semVerParser(release.tag_name);
|
let releaseVersion = semVerParser(release.tag_name);
|
||||||
|
console.log(`Initial releaseVersion ${releaseVersion}`);
|
||||||
|
|
||||||
if (isSemVerGreater(releaseVersion, version)) {
|
if (isSemVerGreater(releaseVersion, version)) {
|
||||||
version = releaseVersion;
|
version = releaseVersion;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user