ci(release): three fixes after the first v0.1.0 attempt

Three blockers surfaced when the first tag actually ran the pipeline:

1. PyPI sdist build refused the `readme = "../../README.md"` path
   in bindings/python/pyproject.toml. maturin sdist forbids `..`
   inside archive entries. Solution: add a Python-specific README at
   bindings/python/README.md (covers the Python install + pointers to
   the main repo) and point the project.readme key at the local file.

2. Node publish job hit ENOENT on npm/<platform>/wickra.<...>.node
   because napi's per-platform scaffolding directories did not exist
   yet when `napi artifacts` ran. Insert `napi create-npm-dirs` as
   its own step before `napi artifacts` so the platform package layout
   is in place before binaries get moved into it.

3. and 4. (crates.io email + npm 2FA-bypass) are registry-side account
   settings that have to be done in the user's browser; no code change
   needed for those. They'll be sorted before the next tag push.
This commit is contained in:
kingchenc
2026-05-21 20:51:30 +02:00
parent 06f67c8c0e
commit 24a9ff8244
3 changed files with 59 additions and 1 deletions
+4
View File
@@ -170,6 +170,10 @@ jobs:
path: bindings/node/artifacts
pattern: bindings-*
- name: Create npm/<platform>/ scaffolding
working-directory: bindings/node
run: npx napi create-npm-dirs
- name: Move binaries into platform package layout
working-directory: bindings/node
run: npx napi artifacts --dir artifacts