ci: SDK release workflows for PyPI + npm (#36, #38) - #55
Merged
Conversation
Add tag-triggered publish automation for both client SDKs so a release is a version bump + a tag, not a manual build/upload. - Python (`memsidecar` → PyPI): `release-python-sdk.yml` builds sdist+wheel, runs `twine check`, and publishes via PyPI Trusted Publishing (OIDC — no stored token). Fired by a `python-sdk-v*` tag; `workflow_dispatch` can target TestPyPI for a rehearsal. pyproject gains `[project.urls]`, classifiers, and keywords. - TypeScript (`@memsidecar/client` → npm): `release-typescript-sdk.yml` builds, tests, packs, and publishes with provenance (`id-token: write`) using an `NPM_TOKEN` secret. Fired by a `typescript-sdk-v*` tag; `workflow_dispatch` defaults to a build/pack-only dry run. package.json gains repository/homepage/ bugs/keywords, `publishConfig` (access public + provenance), `sideEffects: false`, and a `prepublishOnly` build. - `RELEASING.md` documents the one-time registry setup (PyPI Trusted Publisher, npm token) and the tag-to-release flow. Verified locally: `python -m build` produces a wheel containing the client, gen stubs, and ext adapters; `npm pack` includes the built `dist`; both workflows pass actionlint. Actual publishing is gated on the registry-side setup in RELEASING.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 20, 2026
This was referenced Aug 1, 2026
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.
Adds tag-triggered publish automation for both client SDKs — a release becomes a version bump + a tag instead of a manual build/upload. Addresses the npm-publish half of #36 and the PyPI-publish bullet of #38.
What's automated
release-python-sdk.yml): builds sdist+wheel, runstwine check, publishes via PyPI Trusted Publishing (OIDC — no stored token). Fires on apython-sdk-v*tag;workflow_dispatchcan target TestPyPI for a rehearsal.pyproject.tomlgains[project.urls], classifiers, keywords.release-typescript-sdk.yml): builds, tests, packs, publishes with provenance (id-token: write) using anNPM_TOKENsecret. Fires on atypescript-sdk-v*tag;workflow_dispatchdefaults to a build/pack-only dry run.package.jsongains repository/homepage/bugs/keywords,publishConfig(access public + provenance),sideEffects: false, and aprepublishOnlybuild.RELEASING.mddocuments the one-time registry setup and the tag-to-release flow.Publishing can't fully self-configure. Before the first release, per
RELEASING.md:memsidecar, repovibed-project/MemorySidecar, workflowrelease-python-sdk.yml, envpypi(andtestpypito rehearse).@memsidecarscope exists and add an automation token as theNPM_TOKENrepo secret.I did not publish anything — that's outward-facing and needs those credentials.
Verification
Local:
python -m buildproduces a wheel containing the client, gen stubs, and both ext adapters;npm packincludes the builtdist+ declarations;npm ci/build/testpass. Both workflow files pass actionlint. The workflows only trigger on their tags / manual dispatch, so they don't run on this PR.