This commit is contained in:
parent
605b5afd41
commit
8a0db7d292
23
.drone.yml
23
.drone.yml
@ -1,18 +1,17 @@
|
||||
kind: pipeline
|
||||
name: release
|
||||
|
||||
trigger:
|
||||
release: true
|
||||
|
||||
steps:
|
||||
- checkout:
|
||||
- name: checkout
|
||||
image: plugins/git
|
||||
settings:
|
||||
repo: https://github.com/insignia-live/setup-assistant-release.git
|
||||
- run:
|
||||
command: |
|
||||
import semver from "semver";
|
||||
|
||||
const latestReleaseTag = getLatestReleaseTag();
|
||||
|
||||
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.";
|
||||
}
|
||||
|
||||
- name: run
|
||||
image: node:14
|
||||
commands:
|
||||
- npm install semver
|
||||
- node script.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user