From 50810450e5565537669b9578d9b72e5f5adf7ad0 Mon Sep 17 00:00:00 2001 From: Sthope Date: Mon, 28 Aug 2023 18:25:12 +0200 Subject: [PATCH] Add script.js --- script.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 script.js diff --git a/script.js b/script.js new file mode 100644 index 0000000..fe63686 --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +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."); +}