diff --git a/.drone.yml b/.drone.yml index 47c4949..d53ea4d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,18 +1,18 @@ -pipeline: - release: - trigger: - release: true - steps: - - checkout: - repo: https://github.com/insignia-live/setup-assistant-release.git - - run: - command: | - import semver from "semver"; +kind: pipeline +name: release +trigger: + release: true +steps: + - checkout: + repo: https://github.com/insignia-live/setup-assistant-release.git + - run: + command: | + import semver from "semver"; - const version = getLatestReleaseTag(); + const latestReleaseTag = getLatestReleaseTag(); - const isNewer = semver.gt(version, "2023-02-13-1223"); + const isNewer = semver.gt(latestReleaseTag, "2023-02-13-1223"); - if (isNewer) { - echo "This pipeline is run because the new release is newer than the one I have."; - } \ No newline at end of file + if (isNewer) { + echo "This pipeline is run because the new release is newer than the one I have."; + }