Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sthope 2023-08-28 18:24:48 +02:00
parent 605b5afd41
commit 8a0db7d292

View File

@ -1,18 +1,17 @@
kind: pipeline kind: pipeline
name: release name: release
trigger: trigger:
release: true release: true
steps: steps:
- checkout: - name: checkout
image: plugins/git
settings:
repo: https://github.com/insignia-live/setup-assistant-release.git repo: https://github.com/insignia-live/setup-assistant-release.git
- run:
command: | - name: run
import semver from "semver"; image: node:14
commands:
const latestReleaseTag = getLatestReleaseTag(); - npm install semver
- node script.js
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.";
}