From 5e8baffe8a5b59f249a620e6a330d66e78a3e8d6 Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Wed, 31 Jan 2024 05:08:26 +0200 Subject: [PATCH] feat: skip releasing all internal packages Signed-off-by: Marko Kungla --- internal/cmd/hap/addons/releaser/module/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/cmd/hap/addons/releaser/module/module.go b/internal/cmd/hap/addons/releaser/module/module.go index 73cc6e3..16af2fd 100644 --- a/internal/cmd/hap/addons/releaser/module/module.go +++ b/internal/cmd/hap/addons/releaser/module/module.go @@ -105,6 +105,10 @@ func (p *Package) LoadReleaseInfo(sess *happy.Session) error { p.NeedsRelease = true p.NextRelease = fmt.Sprintf("%s%s", p.TagPrefix, "v0.1.0") p.LastRelease = fmt.Sprintf("%s%s", p.TagPrefix, "v0.0.0") + if strings.Contains(p.Import, "internal") { + p.NeedsRelease = false + p.NextRelease = fmt.Sprintf("%s%s", p.TagPrefix, "v0.0.0") + } return nil }