Skip to content

Commit 257bb52

Browse files
committed
ci(release): add spec-graph@beta homebrew cask for prerelease channel
Stable cask now uses skip_upload: auto so prereleases don't overwrite it. New spec-graph@beta cask publishes only on prerelease tags, installable via brew install tyeongkim/tap/spec-graph@beta. Also promotes BurntSushi/toml to a direct dependency via go mod tidy.
1 parent ad79e34 commit 257bb52

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.goreleaser.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ release:
7070
**Full Changelog**: https://github.com/tyeongkim/spec-graph/compare/{{ .PreviousTag }}...{{ .Tag }}
7171
7272
homebrew_casks:
73+
# Stable cask: updated only on full releases. Skipped for prereleases (e.g. -beta).
7374
- name: spec-graph
75+
skip_upload: auto
7476
repository:
7577
owner: tyeongkim
7678
name: homebrew-tap
@@ -85,3 +87,21 @@ homebrew_casks:
8587
post:
8688
install: 'system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}"]'
8789
commit_msg_template: "Update {{ .ProjectName }} to {{ .Tag }}"
90+
91+
# Beta cask: updated only on prereleases. Installed via `brew install tyeongkim/tap/spec-graph@beta`.
92+
- name: spec-graph@beta
93+
skip_upload: '{{ if .Prerelease }}false{{ else }}true{{ end }}'
94+
repository:
95+
owner: tyeongkim
96+
name: homebrew-tap
97+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
98+
url:
99+
template: "https://github.com/tyeongkim/spec-graph/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
100+
homepage: https://github.com/tyeongkim/spec-graph
101+
description: Typed specification graph CLI for managing requirements, decisions, and phases (beta channel)
102+
binaries:
103+
- spec-graph
104+
hooks:
105+
post:
106+
install: 'system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}"]'
107+
commit_msg_template: "Update {{ .ProjectName }} (beta) to {{ .Tag }}"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module github.com/tyeongkim/spec-graph
33
go 1.25.0
44

55
require (
6+
github.com/BurntSushi/toml v1.6.0
67
github.com/mark3labs/mcp-go v0.45.0
78
github.com/spf13/cobra v1.10.2
89
modernc.org/sqlite v1.47.0
910
)
1011

1112
require (
12-
github.com/BurntSushi/toml v1.6.0 // indirect
1313
github.com/bahlo/generic-list-go v0.2.0 // indirect
1414
github.com/buger/jsonparser v1.1.1 // indirect
1515
github.com/dustin/go-humanize v1.0.1 // indirect

0 commit comments

Comments
 (0)