Repository navigation
Add GitHub Releases, npm and PyPI release channels - #17
Conversation
Three workflows fire from the same vX.Y.Z tag as the existing ones and are independent and idempotent: - release-github.yml attaches si-<platform> binaries with .sha256 sidecars. - release-npm.yml publishes @getsigit/si and six @getsigit/si-<os>-<arch> packages with trusted publishing and provenance. - release-pypi.yml publishes sigit-si-cli wheels and an sdist, after a smoke test that installs each wheel and runs si --version. The npm launcher package.json carries its own copy of the version, so verify-version in release-npm.yml fails when it differs from the tag. CI now typechecks the launcher and builds a wheel on pull requests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
siGit Code Review couldn't finish this review: the model service was unavailable. Mention @sigit-code-review to try again. Automated review by siGit Code Review · commit 28b657d · see the review dashboard |
There was a problem hiding this comment.
This change adds three new release workflows for GitHub Releases, npm, and PyPI, each triggered by a version tag or manually, with independent version checks and idempotent publishing logic. The npm and PyPI packaging is implemented in new directories, with scripts to render package.json for the main and platform npm packages. The npm launcher is a TypeScript wrapper that resolves and runs the native binary from a platform package. The README and .gitignore are updated to document and support these new distribution channels. The CI workflow now checks the npm launcher and PyPI wheel builds. The release workflows skip publishing if the version already exists, and all use trusted publishing where supported. No critical or warning issues are apparent in the new workflows, scripts, or packaging logic. The only minor point is the use of a hardcoded Node version in .nvmrc, but this is not a correctness risk. No findings.
Automated review by siGit Code Review · commit 28b657d · requested by @setoelkahfi · see the review dashboard
Adds three release workflows that start from the same
vX.Y.Ztag asrelease-crates.ymlandrelease-nuget.yml. Each has its own tag trigger plusworkflow_dispatch, averify-versionjob, and an existence check, so any of them can be re-run alone.release-github.ymlbuilds the six targets and attachessi-<platform>[.exe]with a.sha256sidecar to the release. Re-running overwrites the assets.release-npm.ymlpublishes@getsigit/siand@getsigit/si-{darwin,linux,windows}-{x64,arm64}with trusted publishing and provenance. The launcher and render scripts live inpackaging/npm/.release-pypi.ymlpublishessigit-si-cliwheels (manylinux 2_28 for Linux, plus Windows x64 and both macOS targets) and an sdist. Every wheel is installed on Linux, Windows and macOS runners andsi --versionmust report the tag version before anything is uploaded. There is no Windows arm64 wheel because maturin refuses arm64 under x64 Python.The npm
package.jsoncarries its own copy of the version (PyPI and NuGet read it from the crate), sorelease-npm.ymlfails early if it differs from the tag. The README release paragraph says to bump it with the workspace version.ci.ymlgains a launcher typecheck and a wheel build.Checked locally:
actionlinton all workflows,npm ci && npm run build, the renderedpackage.jsonmatches the committed one, and a maturin wheel and sdist build, with the wheel installed in a fresh venv reportingsi 1.3.1. The release workflows themselves have not run.Registry setup before the next tag
PyPI: add a pending publisher at pypi.org (Account, Publishing) for project
sigit-si-cli, ownergetsigit, reposi, workflowrelease-pypi.yml, no environment.npm:
npm trustonly works on existing packages, so publish the first version of each of the seven packages by hand (afternpm login), then run:The workflow skips a version that already exists, so a hand-published 1.3.1 is fine and trust takes over from the next release.
GitHub Releases needs no setup.