# Release Publishing

> Publish the gem to Homebrew (GitHub Tap) and RubyGems.org. Use when this capability is needed.

- Skill: `tomevault-io/release-publishing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/release-publishing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/release-publishing/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/release-publishing

---


# Release Publishing

## 1. Publish to Homebrew (GitHub Tap)

We use an automated script to handle the GitHub Release and Homebrew Formula update.

### Prerequisites
- `gh` CLI installed and authenticated (`gh auth login`).
- Clean working directory (commit all changes).

### Run Release Script
```bash
./scripts/release.sh <version>
# Example: ./scripts/release.sh 0.3.2
```

**This script will:**
1. Create and push Git Tag `v<version>`.
2. Create GitHub Release.
3. Update `Formula/commitgpt.rb` with new URL and SHA256.
4. Auto-push the updated Formula.

## 2. Publish to RubyGems

Publish the gem to the official RubyGems registry.

### Build
```bash
gem build commitgpt.gemspec
```

### Push
```bash
gem push commitgpt-<version>.gem
```
(You must be logged in via `gem signin` or have credentials configured)

---
> Source: [ZPVIP/commitgpt](https://github.com/ZPVIP/commitgpt) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-21 -->

