From d321af19c735204a3cc78203c1a463fbbf54185f Mon Sep 17 00:00:00 2001 From: Denis Shaporov Date: Thu, 9 Jul 2026 20:32:28 +0300 Subject: [PATCH] chore: pull go-scaffolds template updates --- .copier-answers.yml | 2 +- taskfile.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 1b64e5c..ef4a65e 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY. -_commit: v1.5.0 +_commit: v1.6.0 _src_path: gh:acidsailor/go-scaffolds author: Denis Shaporov / acidsailor author_email: d@shaporov.dev diff --git a/taskfile.yml b/taskfile.yml index 46289db..d8acd00 100644 --- a/taskfile.yml +++ b/taskfile.yml @@ -34,6 +34,24 @@ tasks: cmds: - goreleaser release --clean + release-plan: + desc: Preview the next release version from conventional commits (svu; read-only) + silent: true + cmds: + - svu next --v0 + + release-tag: + desc: Cut & push the next svu tag — fires the GoReleaser `release` job in CI + cmds: + - | + set -euo pipefail + next=$(svu next --v0) + if [ -z "$next" ]; then echo "svu returned no version — is svu installed?" >&2; exit 1; fi + if [ "$next" = "$(svu current)" ]; then echo "nothing to release (at $next)"; exit 0; fi + git tag -a "$next" -m "release $next" + git push origin "$next" + echo "pushed $next → CI will build the release" + update: desc: Pull latest go-scaffolds v1 template tooling (3-way merge; source untouched; no prompts) cmds: