From 048fd63e67d7a807dffd285d00f8c31709655807 Mon Sep 17 00:00:00 2001 From: Nate Meyer <672246+notnmeyer@users.noreply.github.com> Date: Wed, 1 Apr 2026 09:57:04 -0700 Subject: [PATCH] remove republish task, also check for an existing tag as a precondition --- Taskfile.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 09f0439..5ea0bdb 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -46,23 +46,8 @@ tasks: - git tag {{.tag}} - git push origin {{.tag}} preconditions: - - sh: '[ "$(git branch --show-current)" = "main" ]' - msg: make sure you're on main - - release:republish: - desc: republish a cli version - deps: - - release:check - requires: - vars: - - tag - cmds: - - git pull --rebase - - gh release delete {{.tag}} --yes --cleanup-tag - - task: release - vars: - tag: '{{.tag}}' - preconditions: + - sh: "! git ls-remote --tags origin {{.tag}} | grep -q ." + msg: "tag {{.tag}} already exists on remote" - sh: '[ "$(git branch --show-current)" = "main" ]' msg: make sure you're on main