From 7a130eae541041116707eb1a37f8cc3b067308b6 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Mon, 23 Jan 2023 22:18:33 +0100 Subject: [PATCH] ci: :construction_worker: create --first-release if no git tag --- .woodpecker.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9a802be..42e3868 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,4 +3,11 @@ pipeline: image: node:19 commands: - npm install --global standard-version - - standard-version --dry-run + - | + if [[ $(git tag) -ne 0 ]]; then + standard-version + else + standard-version --first-release + fi + +branches: main