10 lines
286 B
JavaScript
10 lines
286 B
JavaScript
const semver = require("semver");
|
|
|
|
const latestReleaseTag = getLatestReleaseTag(); // Implement this function
|
|
|
|
const isNewer = semver.gt(latestReleaseTag, "2023-02-13-1223");
|
|
|
|
if (isNewer) {
|
|
console.log("This pipeline is run because the new release is newer than the one I have.");
|
|
}
|