Skip to content

ci: migrate release pipeline to GoReleaser#13

Merged
fank merged 1 commit intomainfrom
claude/goreleaser-migration
Apr 12, 2026
Merged

ci: migrate release pipeline to GoReleaser#13
fank merged 1 commit intomainfrom
claude/goreleaser-migration

Conversation

@fank
Copy link
Copy Markdown
Member

@fank fank commented Apr 12, 2026

Summary

Migrates n8n-cli to GoReleaser — completing the rollout across all 3 Go CLIs (esq-cli validated on v1.1.3, atl-cli validated on its latest release).

n8n-cli-specific differences

Config esq-cli / atl-cli n8n-cli
Binary name esq / atl n8nctl
Cmd path ./cmd/esq / ./cmd/atl ./cmd/n8nctl
Version ldflag -X main.version -X github.com/enthus-appdev/n8n-cli/internal/cmd.version
Extra ldflags commit, date (atl) none — only version
Version invocation --version version subcommand

Test plan

  • `.goreleaser.yml` passes `goreleaser check`
  • Merge and tag next version
  • Verify release + formula push to `enthus-appdev/homebrew-tap`

Same proven pattern from esq-cli and atl-cli.

Differences from the other CLIs:
- Version ldflag path: github.com/enthus-appdev/n8n-cli/internal/cmd.version
  (version variable lives in internal/cmd, not main)
- Only one ldflag (no commit or date injection)
- Binary and formula name: n8nctl (distinct from repo name n8n-cli)
- Test uses `n8nctl version` subcommand (not --version flag)
@fank fank force-pushed the claude/goreleaser-migration branch from 4d18bf1 to f9564dd Compare April 12, 2026 10:44
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a .goreleaser.yml file to automate the release process for the n8nctl CLI, covering multi-platform builds and Homebrew formula updates. Feedback suggests exporting the version variable for linker flags to follow Go best practices and tightening the Homebrew test assertion to ensure the version output format remains consistent.

Comment thread .goreleaser.yml
Comment thread .goreleaser.yml
@fank fank merged commit cb55614 into main Apr 12, 2026
5 checks passed
@fank fank deleted the claude/goreleaser-migration branch April 12, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant