refactor(release): simplify pre-release channel to nightly only

Drops `alpha` / `beta` / `rc` as accepted pre-release labels in
bin/dev/release.sh. `nightly` is now the only pre-release descriptor,
in preparation for automated nightly tags.

Renames the Homebrew tap formula from `fabro-beta` to `fabro-nightly`:

- installer/fabro-beta.rb.template -> installer/fabro-nightly.rb.template
  (class renamed FabroBeta -> FabroNightly, desc updated).
- `update-homebrew-beta` job in release.yml is now
  `update-homebrew-nightly` with matching file paths and commit message.

Breaking for existing `brew install fabro-sh/tap/fabro-beta` users: the
old formula file stays in the tap for now (removed in a follow-up once
fabro-nightly is populated) and stops receiving updates. Users should
switch to `brew install fabro-sh/tap/fabro-nightly` once the new
formula is published by the next pre-release tag.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-04-17 11:39:19 -04:00
parent 18a551f076
commit 2d8d72717d
No known key found for this signature in database
3 changed files with 12 additions and 12 deletions

View file

@ -146,8 +146,8 @@ jobs:
git add Formula/fabro.rb git add Formula/fabro.rb
git diff --cached --quiet || (git commit -m "Update fabro to ${TAG_NAME}" && git push) git diff --cached --quiet || (git commit -m "Update fabro to ${TAG_NAME}" && git push)
update-homebrew-beta: update-homebrew-nightly:
name: Update Homebrew Beta Formula name: Update Homebrew Nightly Formula
needs: release needs: release
if: ${{ contains(github.ref_name, '-') }} if: ${{ contains(github.ref_name, '-') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -165,7 +165,7 @@ jobs:
pattern: artifacts-fabro-* pattern: artifacts-fabro-*
merge-multiple: true merge-multiple: true
- name: Generate and push beta formula - name: Generate and push nightly formula
env: env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
TAG_NAME: ${{ github.ref_name }} TAG_NAME: ${{ github.ref_name }}
@ -181,12 +181,12 @@ jobs:
-e "s/{{SHA_AARCH64_DARWIN}}/$SHA_AARCH64_DARWIN/g" \ -e "s/{{SHA_AARCH64_DARWIN}}/$SHA_AARCH64_DARWIN/g" \
-e "s/{{SHA_X86_64_LINUX}}/$SHA_X86_64_LINUX/g" \ -e "s/{{SHA_X86_64_LINUX}}/$SHA_X86_64_LINUX/g" \
-e "s/{{SHA_AARCH64_LINUX}}/$SHA_AARCH64_LINUX/g" \ -e "s/{{SHA_AARCH64_LINUX}}/$SHA_AARCH64_LINUX/g" \
installer/fabro-beta.rb.template > fabro-beta.rb installer/fabro-nightly.rb.template > fabro-nightly.rb
git clone https://x-access-token:${GH_TOKEN}@github.com/fabro-sh/homebrew-tap.git tap git clone https://x-access-token:${GH_TOKEN}@github.com/fabro-sh/homebrew-tap.git tap
cp fabro-beta.rb tap/Formula/fabro-beta.rb cp fabro-nightly.rb tap/Formula/fabro-nightly.rb
cd tap cd tap
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git add Formula/fabro-beta.rb git add Formula/fabro-nightly.rb
git diff --cached --quiet || (git commit -m "Update fabro-beta to ${TAG_NAME}" && git push) git diff --cached --quiet || (git commit -m "Update fabro-nightly to ${TAG_NAME}" && git push)

View file

@ -34,9 +34,9 @@ next_base_version() {
validate_prerelease_label() { validate_prerelease_label() {
local label="$1" local label="$1"
case "$label" in case "$label" in
alpha|beta|rc) ;; nightly) ;;
*) *)
die "invalid pre-release label: $label (expected one of: alpha, beta, rc)" die "invalid pre-release label: $label (expected: nightly)"
;; ;;
esac esac
} }
@ -73,7 +73,7 @@ parse_args() {
;; ;;
--help|-h) --help|-h)
cat <<'EOF' cat <<'EOF'
Usage: bin/dev/release.sh [alpha|beta|rc] [--dry-run] [--skip-tests] Usage: bin/dev/release.sh [nightly] [--dry-run] [--skip-tests]
Create the next stable release from main, or compute a prerelease tag. Create the next stable release from main, or compute a prerelease tag.

View file

@ -1,5 +1,5 @@
class FabroBeta < Formula class FabroNightly < Formula
desc "Unified CLI for the Fabro AI framework (pre-release channel)" desc "Unified CLI for the Fabro AI framework (nightly channel)"
homepage "https://fabro.sh" homepage "https://fabro.sh"
license "MIT" license "MIT"
version "{{VERSION}}" version "{{VERSION}}"