From ae1d6bff8a0e655b8d9aa871f1dc2e8897bef6c3 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 24 Oct 2025 10:56:26 -0300 Subject: [PATCH] ci: do not push prereleases to npm, brew, etc (#1291) Signed-off-by: Carlos Alexandro Becker --- .goreleaser.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 28539bc1681353065ea542a1e4de711a2d425585..1bfc9202745776736b1483f9e697292d9f90386b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -98,6 +98,7 @@ checksum: aur_sources: - private_key: "{{ .Env.AUR_KEY }}" + disable: "{{ with .Prerelease }}true{{ end }}" git_url: "ssh://aur@aur.archlinux.org/crush.git" commit_author: name: "Charm" @@ -141,6 +142,7 @@ aur_sources: aurs: - private_key: "{{ .Env.AUR_KEY }}" + disable: "{{ with .Prerelease }}true{{ end }}" git_url: "ssh://aur@aur.archlinux.org/crush-bin.git" commit_author: name: "Charm" @@ -170,7 +172,7 @@ aurs: install -Dm644 README* "${pkgdir}/usr/share/doc/crush/" furies: - - disable: "{{ .IsNightly }}" + - disable: "{{ if (or .Prerelease .IsNightly) }}true{{ end }}" account: "{{ with .Env.FURY_TOKEN }}charmcli{{ else }}{{ end }}" secret_name: FURY_TOKEN @@ -179,6 +181,7 @@ brews: owner: charmbracelet name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + skip_upload: "{{ with .Prerelease }}true{{ end }}" commit_author: name: "Charm" email: "charmcli@users.noreply.github.com" @@ -194,6 +197,7 @@ scoops: owner: charmbracelet name: scoop-bucket token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + skip_upload: "{{ with .Prerelease }}true{{ end }}" commit_author: name: "Charm" email: "charmcli@users.noreply.github.com" @@ -203,6 +207,7 @@ npms: repository: "git+https://github.com/charmbracelet/crush.git" bugs: https://github.com/charmbracelet/crush/issues access: public + disable: "{{ with .Prerelease }}true{{ end }}" nfpms: - formats: @@ -257,6 +262,7 @@ nix: name: "Charm" email: "charmcli@users.noreply.github.com" license: fsl11Mit + skip_upload: "{{ with .Prerelease }}true{{ end }}" extra_install: |- installManPage ./manpages/crush.1.gz installShellCompletion ./completions/* @@ -267,6 +273,7 @@ winget: publisher_url: https://charm.land release_notes_url: "https://github.com/charmbracelet/crush/releases/tag/{{.Tag}}" license_url: https://github.com/charmbracelet/crush/blob/main/LICENSE.md + skip_upload: "{{ with .Prerelease }}true{{ end }}" commit_author: name: "Charm" email: "charmcli@users.noreply.github.com"