feat: migrate to napi-rs v3 and update release workflow - #27
Merged
Merged
Conversation
- Upgrade napi/napi-derive to v3, CLI to @napi-rs/cli@^3.7.2 - Derive version from git tag via .github/actions/stamp-version - Switch npm publish to OIDC trusted publishing (no NPM_TOKEN) - Split npm publish into per-platform matrix (independently retriable) - Add pre-publish safety gates (node-pack, python-inspect) - Upload artifacts for local testing before publish - Fix aarch64-linux cross-compile for both Node and Python - Bump CI action versions (checkout v6, setup-python v6, setup-node v6)
zastrowm
marked this pull request as ready for review
June 16, 2026 14:31
mkmeral
approved these changes
Jun 16, 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.
Description
Updates the release workflow so that cutting a
vX.Y.Ztag is the only release action needed, following the existing convention from strands-sdk.Callouts:
napi/napi-deriveupgraded to v3, CLI to@napi-rs/cli@^3.7.20.0.0;.github/actions/stamp-versionstamps the tag at build timeid-token: write(noNPM_TOKENsecret)fail-fast: false) so that each are retriable independently. The main package is published following the platform specific items.node-packandpython-inspectupload downloadable artifacts for local testingExample workflow: https://github.com/zastrowm/shell/actions/runs/27622359408 (fails on release because we haven't set up publishing yet)
Related Issues
Addresses the release pipeline requirements from #1.
Documentation PR
N/A — CI/workflow changes only.
Type of Change
New feature
Testing
Validated end-to-end across 6 CI runs on a fork (
zastrowm/shell, tags v0.2.0 through v0.2.6):npm-packagesartifact, published to a local Verdaccio registry, confirmednpm install @strands-agents/shellauto-resolves the correct platformoptionalDependencypypi-dist-bundle, installed viapip install --find-links, confirmed platform tag resolution picks the correct wheelcargo test --workspace --all-targets,pytest tests/python,npm test)cargo fmtandcargo clippyChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.