Changesets-style release automation on top of scriv
Project description
scriv-release
Changesets-style release automation on top of scriv.
scriv already manages per-PR changelog fragments. scriv-release adds the missing pieces for fully automated releases:
- A policy for mapping changelog categories to semver bump levels.
- Orchestration commands (
bump-level,next-version,collect,tag) that wrapscrivand a configurable version provider. - A GitHub Action that opens a "Changelog Preview" PR when fragments are pending, and tags a release once that PR is merged — the same flow popularized by Changesets in the JS ecosystem.
Quickstart
pip install "scriv-release[bump-my-version]"
# pyproject.toml
[tool.scriv-release]
version_provider = "bump-my-version"
In your repo's .github/workflows/release.yml:
on:
push:
branches: [main]
permissions: {}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- uses: whitphx/scriv-release@v0.4.0
with:
client-id: ${{ vars.RELEASE_APP_CLIENT_ID }}
app-private-key: ${{ secrets.RELEASE_APP_KEY }}
RELEASE_APP_CLIENT_ID and RELEASE_APP_KEY come from a GitHub App that you own. The action mints a short-lived installation token from the App so the tag-push it does at release time can trigger downstream workflows (the default GITHUB_TOKEN cannot — by design, to avoid recursion). To skip the manual App-creation flow, open
and click Create on your personal account (or fill the org name). GitHub's confirmation page is pre-populated with the recommended permissions (contents: write, pull_requests: write); submit, and the App is registered under your account. The page then walks you through generating a key, installing the App on the repo, and setting the secrets. See docs/token-setup.md for the longer explanation and a manual fallback.
For end-to-end onboarding, see docs/quickstart.md.
How it works
Two phases, branched on whether changelog fragments are present on HEAD:
- Fragments present →
scriv collectinto ascriv-release-previewbranch and open/update a "Changelog Preview" PR. - No fragments on
HEAD, but fragments onHEAD~1→ that means the preview PR was just merged. Determine the bump level fromHEAD~1's fragments, tag the release, push the tag.
This is the same file-presence-based detection Changesets uses, so it survives squash, rebase, and merge commits alike.
Status
Early scaffold. Public API and config keys may shift before 1.0.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scriv_release-0.4.1.tar.gz.
File metadata
- Download URL: scriv_release-0.4.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cc15c8001f144f91554111ff27e737797e1ea4c1a16167f4176b12f2742918d
|
|
| MD5 |
0c4e263b9ec665a286b8a4fd427e3d55
|
|
| BLAKE2b-256 |
5407790295bc7466a98f8de0a1951114380e9cdaed1f73c9f0ed2239b6268d31
|
Provenance
The following attestation bundles were made for scriv_release-0.4.1.tar.gz:
Publisher:
publish.yml on whitphx/scriv-release
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scriv_release-0.4.1.tar.gz -
Subject digest:
0cc15c8001f144f91554111ff27e737797e1ea4c1a16167f4176b12f2742918d - Sigstore transparency entry: 1549970717
- Sigstore integration time:
-
Permalink:
whitphx/scriv-release@5c0940a852dbc291825b7ec60f772b66aabdb680 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/whitphx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c0940a852dbc291825b7ec60f772b66aabdb680 -
Trigger Event:
push
-
Statement type:
File details
Details for the file scriv_release-0.4.1-py3-none-any.whl.
File metadata
- Download URL: scriv_release-0.4.1-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb4779aa243a0cae07496239b371076d72a940cc7262d83e6daae2cbc49e054
|
|
| MD5 |
2c4fa85a0358fb2ff6ced40a9597e297
|
|
| BLAKE2b-256 |
1dd1a94a7820b28b609040af2ec2b1c8fd8301e2adcd6be94f44ed56bb58fa34
|
Provenance
The following attestation bundles were made for scriv_release-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on whitphx/scriv-release
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scriv_release-0.4.1-py3-none-any.whl -
Subject digest:
ffb4779aa243a0cae07496239b371076d72a940cc7262d83e6daae2cbc49e054 - Sigstore transparency entry: 1549970763
- Sigstore integration time:
-
Permalink:
whitphx/scriv-release@5c0940a852dbc291825b7ec60f772b66aabdb680 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/whitphx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c0940a852dbc291825b7ec60f772b66aabdb680 -
Trigger Event:
push
-
Statement type: