From 099185acbb72e19dea39c62f0959000726da55c2 Mon Sep 17 00:00:00 2001 From: Dylan Hunt Date: Thu, 3 Dec 2026 15:57:37 +0800 Subject: [PATCH] chore(release): retire beta tags The app is in production: every release is a plain vX.Y.Z tag. release.yml now rejects -beta/-alpha/-rc tags and the beta dispatch option before anything is drafted, the release:beta script is removed, and CLAUDE.md says so. The legacy beta/stable update CHANNELS (TRANSITION steps) are unchanged: old installs still read them. --- .github/workflows/release.yml | 32 +++++++++++++++-------------- .github/workflows/winget-submit.yml | 2 +- CHANGELOG.md | 1 + CLAUDE.md | 11 ++++++---- package.json | 1 - 5 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89d6cd5..53c1144 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,11 @@ # Triggered on v* tag pushes (see `on:` below). # # Channel model (since 2026-08): -# - The tag suffix (-beta/-alpha vs none) controls the BUILD FLAVOR only: -# vite mode staging vs production, devtools features, -# winget --prerelease. +# - NO BETA TAGS (since 2026-12). The app is in production: every release is a +# plain vX.Y.Z tag and builds the production flavor. A -beta/-alpha tag (or a +# manual run asking for the beta flavor) is rejected in "Determine channel". +# The `channel == 'beta'` branches further down are unreachable leftovers of +# the old staging flavor (staging vite mode, devtools, winget --prerelease). # - ALL releases publish to the CrabNebula DEFAULT channel (no --channel # flag). The public releases page ONLY lists the default channel - named # channels (including one literally called "stable") are invisible to it, @@ -66,7 +68,7 @@ name: Release on: push: tags: - - 'v*' # Triggers on version tags (v0.8.1, v0.8.1-beta.1, etc.) + - 'v*' # Triggers on version tags (v1.3.0). Pre-release suffixes are rejected below. workflow_dispatch: inputs: channel: @@ -75,7 +77,6 @@ on: type: choice options: - auto - - beta - stable default: auto @@ -156,17 +157,18 @@ jobs: INPUT_CHANNEL: ${{ github.event.inputs.channel }} REF_NAME: ${{ github.ref_name }} run: | - # `channel` = build flavor only (beta vs stable UX/config differences). - if [ "$INPUT_CHANNEL" != "auto" ] && [ -n "$INPUT_CHANNEL" ]; then - case "$INPUT_CHANNEL" in beta|stable) ;; *) echo "::error::channel must be beta, stable or auto"; exit 1 ;; esac - echo "channel=$INPUT_CHANNEL" >> "$GITHUB_OUTPUT" - elif [[ "$REF_NAME" == *"-beta"* ]] || [[ "$REF_NAME" == *"-alpha"* ]]; then - # Tags like v0.8.1-beta.1 build the beta flavor - echo "channel=beta" >> $GITHUB_OUTPUT - else - # Tags like v0.8.1 build the stable flavor - echo "channel=stable" >> $GITHUB_OUTPUT + # `channel` = build flavor. Only the production ("stable") flavor exists now: + # beta/alpha releases were retired (2026-12), so they fail here before + # anything is drafted or built. + if [[ "$REF_NAME" == *"-beta"* ]] || [[ "$REF_NAME" == *"-alpha"* ]] || [[ "$REF_NAME" == *"-rc"* ]]; then + echo "::error::Pre-release tags are not supported ($REF_NAME). Tag a plain vX.Y.Z release." + exit 1 + fi + if [ "$INPUT_CHANNEL" != "auto" ] && [ -n "$INPUT_CHANNEL" ] && [ "$INPUT_CHANNEL" != "stable" ]; then + echo "::error::channel must be stable or auto" + exit 1 fi + echo "channel=stable" >> "$GITHUB_OUTPUT" - name: Create draft release id: create_release diff --git a/.github/workflows/winget-submit.yml b/.github/workflows/winget-submit.yml index 146c4a4..4953a28 100644 --- a/.github/workflows/winget-submit.yml +++ b/.github/workflows/winget-submit.yml @@ -10,7 +10,7 @@ on: workflow_dispatch: inputs: version: - description: 'App version, e.g. 0.9.4 or 0.9.4-beta.1 (no leading v)' + description: 'App version, e.g. 1.3.0 (no leading v)' required: true type: string diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b72415..869b0c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to Echophrase will be documented in this file. ### Developers - Committing a dependency change (`Cargo.lock`, `bun.lock`) now regenerates the third-party notices in the same commit, so the "Attribution is current" check no longer fails afterwards. It needs `cargo-about` at the version `ci.yml` pins. - `static/index.html` is no longer tracked. It is build output, so it showed up as modified after every build. +- Beta releases are retired: the release workflow rejects `-beta`/`-alpha`/`-rc` tags and the `release:beta` script is gone. ## [v1.3.0] - 2026-12-02 diff --git a/CLAUDE.md b/CLAUDE.md index 229af81..3f7a922 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -408,10 +408,13 @@ buttons). Add an entry whenever you work around a bug you do not own. diffs skip them. PRs check Linux + Windows; macOS clippy/tests run on pushes to `main` (its runners queue ~10 min), so a macOS-only failure shows up after merge. Runs on `main` are never cancelled by a newer push. -- All tags release from `main`. A `-beta.N` suffix only changes the build flavor - (staging vite mode + devtools). Every release publishes to the CrabNebula - **default** channel. `# TRANSITION:` steps in `release.yml` also publish to the - legacy `beta`/`stable` channels until old installs migrate. +- All tags release from `main`. **There are no beta tags: the app is in production.** + Every release is a plain `vX.Y.Z` tag; `release.yml` rejects `-beta`/`-alpha`/`-rc` + tags. Never suggest "test it on a beta first" - verify before merging instead. + Every release publishes to the CrabNebula **default** channel. `# TRANSITION:` steps + in `release.yml` also publish to the legacy `beta`/`stable` update CHANNELS (not tags) + so old installs with a channel baked into their updater URL still receive updates; + leave those until they migrate. - **Every release ships its full patch notes, everywhere.** CrabNebula (the in-app update modal) gets every released CHANGELOG section, `### Developers` included: the modal hides those sections itself until the user ticks "Show developer changes". The diff --git a/package.json b/package.json index b710e78..a2c9adf 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "tauri:build:win:prod": "bun scripts/ensure-ort.mjs && bunx --bun vite build --mode production && bunx tauri build --ci", "prepare": "bunx --bun svelte-kit sync && husky", "release": "release-it", - "release:beta": "release-it --preRelease=beta", "release:patch": "release-it patch", "release:minor": "release-it minor", "release:major": "release-it major",