Add .drone.yml
This commit is contained in:
parent
659541f0a8
commit
2b9414c57d
18
.drone.yml
Normal file
18
.drone.yml
Normal file
@ -0,0 +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";
|
||||||
|
|
||||||
|
const version = getLatestReleaseTag();
|
||||||
|
|
||||||
|
const isNewer = semver.gt(version, "v1.0.0");
|
||||||
|
|
||||||
|
if (isNewer) {
|
||||||
|
echo "This pipeline is run because the new release is newer than the one I have.";
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user