Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/scripts/auto_release_internal/detect.sh

This file was deleted.

40 changes: 0 additions & 40 deletions .github/scripts/dispatch_release/detect.sh

This file was deleted.

66 changes: 0 additions & 66 deletions .github/scripts/dispatch_release/open_release_pr.sh

This file was deleted.

59 changes: 0 additions & 59 deletions .github/scripts/dispatch_release/push_prerelease.sh

This file was deleted.

27 changes: 0 additions & 27 deletions .github/scripts/publish/create_release.sh

This file was deleted.

20 changes: 20 additions & 0 deletions .github/scripts/publish/post_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Repository-specific artifact checks, run by publish.yml's collect job after
# every build and before the approval gate. PACKAGE, VERSION, BUILD_DIR and
# DIST_DIR are in the environment.
set -euo pipefail

: "${PACKAGE:?}"
: "${DIST_DIR:?}"

# The reflex wheel carries the generated .pyi stubs (scripts/hatch_build.py).
# A build that silently produced none would ship a release with no type
# information, so it must not reach the approver.
if [ "$PACKAGE" = "reflex" ]; then
if unzip -l "$DIST_DIR"/*.whl | grep '\.pyi$'; then
echo "✓ .pyi files found in distribution"
else
echo "Error: No .pyi files found in wheel"
exit 1
fi
fi
17 changes: 0 additions & 17 deletions .github/scripts/publish/push_tag.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/scripts/publish/verify_pyi.sh

This file was deleted.

44 changes: 26 additions & 18 deletions .github/workflows/auto_release_internal.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# Generated by reflex-release; do not edit by hand.
# Re-run `uv run --frozen --package reflex-release reflex-release sync` after changing [tool.reflex-release] in
# pyproject.toml. `uv run --frozen --package reflex-release reflex-release sync --check` fails when this file drifts.
name: Auto-release internal packages

# Internal packages (no changelog, patch-bump versioning) release on every
# push to main that touches them. Publishing goes through publish.yml with no
# explicit version: the next patch version is computed from the newest tag
# inside the per-package publish concurrency group, and the tag is only
# pushed after a successful upload. Like every publish, the upload itself
# waits for approval by the pypi environment's required reviewers.
# Internal packages (no changelog, patch-bump versioning) release on every push
# to main that touches them. Publishing goes through publish.yml
# with no explicit version: the next patch version is computed from the newest
# tag inside the per-package publish concurrency group, and the tag is only
# pushed after a successful upload. Like every publish, the upload itself waits
# for approval by the pypi environment's required reviewers.

on:
push:
branches: [main]
branches: ["main"]
paths:
- "packages/reflex-components-internal/**"
- "packages/reflex-site-shared/**"
- ".github/workflows/auto_release_internal.yml"
- "packages/reflex-components-internal/src/**"
- "packages/reflex-site-shared/src/**"
workflow_dispatch:
inputs:
package:
description: "Package to release"
description: "Internal package to release"
required: true
type: choice
options:
- reflex-components-internal
- reflex-site-shared
type: string

permissions:
contents: read
Expand All @@ -35,15 +34,24 @@ jobs:
outputs:
packages: ${{ steps.detect.outputs.packages }}
steps:
# The whole pushed range has to be reachable: the paths filter above
# matches every commit in the push, so detection must diff the same range
# rather than only the last commit.
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: "0.12.5"
python-version: "3.14.7"
- id: detect
env:
EVENT_NAME: ${{ github.event_name }}
DISPATCH_PACKAGE: ${{ inputs.package }}
run: bash .github/scripts/auto_release_internal/detect.sh
BASE_SHA: ${{ github.event.before }}
HEAD_SHA: ${{ github.event.after }}
shell: bash
run: uv run --frozen --package reflex-release reflex-release detect-internal

publish:
needs: detect
Expand Down
Loading
Loading