on main help sign in
chore(task): just use svu if it's already installed
255aa3bChristian Rocha
Taskfile.yaml+1−1
@@ -89,7 +89,7 @@ tasks:
89 desc: Create and push a new tag following semver
89 desc: Create and push a new tag following semver
90 vars:
90 vars:
91 NEXT:
91 NEXT:
92− sh: go run github.com/caarlos0/svu/v3@latest next --always
92+ sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
93 prompt: "This will release {{.NEXT}}. Continue?"
93 prompt: "This will release {{.NEXT}}. Continue?"
94 preconditions:
94 preconditions:
95 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
95 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'