Repository navigation
Publish from GitHub Actions through trusted publishing - #124
Merged
Merged
Conversation
A version tag runs .github/workflows/publish.yml: it checks the tag against pyproject.toml and package.json, builds both packages, publishes them to PyPI and npm through trusted publishing (environment release) and creates the GitHub release from the version's changelog.md section. Version 0.16.6.
✅ Incremental coverage — nothing to gradeNo executable lines were changed between 6 files not graded (6 not source files)
Coverage reports: coverage.json (coverage.py, 76 files) · coverage/clover.xml (clover, 19 files) — incremental-coverage-check v3.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pushed version tag (
v*) runs the new.github/workflows/publish.yml, the same workflow as velis74/muxws:pyproject.tomlandpackage.jsonand thatchangelog.mdhas a section for it; builds the wheel and sdist (uv build) and the npm tarball (npm pack) into separate artifacts underpackages/.release,id-token: write): publish through trusted publishing; PyPI files get PEP 740 attestations, the npm package a provenance statement. The npm name comes frompackage.json; the tarball is published with--access public, a prerelease under the dist-tagnext. Both jobs skip a version that is already published, so a re-run finishes after a partial failure.changelog.mdsection and the packages attached.Version 0.16.6, changelog entry under Changed.
Checked in a fresh clone of this branch: every
runstep of the build job (GITHUB_REF_NAME=v0.16.6), the npm job's step withnpm_config_dry_run=truein a directory holding only the artifact ("Publishing to https://registry.npmjs.org/ with tag latest and public access (dry-run)"), the release notes extraction andtwine checkof the wheel and sdist.The
v*tags of this repository are protected by the ruleset "version tags" (no deletion, update or force push).