Skip to content

Add GitHub Releases, npm and PyPI release channels - #17

Merged
setoelkahfi merged 1 commit into
developmentfrom
feature/github-npm-pypi-distribution
Nov 25, 2026
Merged

setoelkahfi merged 1 commit into
developmentfrom
feature/github-npm-pypi-distribution

Conversation

@setoelkahfi

Copy link
Copy Markdown
Collaborator

Adds three release workflows that start from the same vX.Y.Z tag as release-crates.yml and release-nuget.yml. Each has its own tag trigger plus workflow_dispatch, a verify-version job, and an existence check, so any of them can be re-run alone.

  • release-github.yml builds the six targets and attaches si-<platform>[.exe] with a .sha256 sidecar to the release. Re-running overwrites the assets.
  • release-npm.yml publishes @getsigit/si and @getsigit/si-{darwin,linux,windows}-{x64,arm64} with trusted publishing and provenance. The launcher and render scripts live in packaging/npm/.
  • release-pypi.yml publishes sigit-si-cli wheels (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 and si --version must report the tag version before anything is uploaded. There is no Windows arm64 wheel because maturin refuses arm64 under x64 Python.

The npm package.json carries its own copy of the version (PyPI and NuGet read it from the crate), so release-npm.yml fails early if it differs from the tag. The README release paragraph says to bump it with the workspace version. ci.yml gains a launcher typecheck and a wheel build.

Checked locally: actionlint on all workflows, npm ci && npm run build, the rendered package.json matches the committed one, and a maturin wheel and sdist build, with the wheel installed in a fresh venv reporting si 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, owner getsigit, repo si, workflow release-pypi.yml, no environment.

npm: npm trust only works on existing packages, so publish the first version of each of the seven packages by hand (after npm login), then run:

for package in si si-darwin-arm64 si-darwin-x64 si-linux-arm64 si-linux-x64 si-windows-arm64 si-windows-x64; do
  npm trust github "@getsigit/${package}" --repo getsigit/si --file release-npm.yml
done

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.

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>
@setoelkahfi setoelkahfi self-assigned this Nov 9, 2026
@sigit-code-review

Copy link
Copy Markdown

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

@setoelkahfi
setoelkahfi requested a review from paydii November 9, 2026 16:50
@setoelkahfi

Copy link
Copy Markdown
Collaborator Author

@sigit-code-review

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@setoelkahfi
setoelkahfi merged commit 9437f1e into development Nov 25, 2026
3 checks passed
@setoelkahfi
setoelkahfi deleted the feature/github-npm-pypi-distribution branch November 25, 2026 16:06
This was referenced Nov 27, 2026
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.

2 participants