Skip to content

ci: treat hyphenated tags as prereleases#4

Merged
YoungDan merged 1 commit into
mainfrom
ci/prerelease-guards
May 29, 2026
Merged

ci: treat hyphenated tags as prereleases#4
YoungDan merged 1 commit into
mainfrom
ci/prerelease-guards

Conversation

@YoungDan
Copy link
Copy Markdown
Member

Summary

  • Mark hyphenated semver tags (e.g. v0.1.0-rc.1) as GitHub prereleases in release.yml.
  • Skip the floating v1 tag move for prerelease tags.
  • Skip the crates.io publish (crates-publish.yml) for prereleases — crates.io publishes are permanent.
  • Skip the Homebrew tap PR (homebrew.yml) for prerelease release events; manual workflow_dispatch still runs.

Why

Enables v*.*.*-rc.N tags to exercise the full build → cosign → SLSA provenance → GitHub Release path as a safe, repeatable dry-run without touching crates.io, the Homebrew tap, or the v1 floating tag.

Test plan

  • CI green on this PR.
  • After merge: push v0.1.0-rc.1release.yml produces a prerelease with 5 archives + 5 .sha256 + cosign sigs/certs + SLSA .intoto.jsonl; crates-publish and homebrew are skipped; v1 is not moved.

Marks vX.Y.Z-rc.N (and any hyphenated semver tag) as a GitHub
prerelease, and skips the side effects that should only happen for a
real release: the floating v1 tag move, the crates.io publish, and the
Homebrew tap PR. This makes rc tags a safe, repeatable release dry-run.
@YoungDan YoungDan merged commit bf848af into main May 29, 2026
4 checks passed
@YoungDan YoungDan deleted the ci/prerelease-guards branch May 29, 2026 11:16
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