88 branches :
99 - main
1010 paths :
11- - " js /**"
11+ - " ts /**"
1212 - " .github/workflows/npm-publish.yml"
1313 pull_request :
1414 paths :
15- - " js /**"
15+ - " ts /**"
1616 - " .github/workflows/npm-publish.yml"
1717
1818jobs :
2323 id-token : write # required for npm trusted publishing (OIDC)
2424 defaults :
2525 run :
26- working-directory : js
26+ working-directory : ts
2727 steps :
2828 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929 - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -32,17 +32,19 @@ jobs:
3232 registry-url : " https://registry.npmjs.org"
3333
3434 # Install deps for the single npm package
35- # (@pollen-robotics/reachy-mini-sdk). The SDK runtime is plain
36- # JS at js/reachy-mini-sdk.js; the optional host shell lives
37- # under js/host/ and is bundled by `npm run build` into
38- # js/host/dist/, surfaced via the `./host*` subpath exports.
39- - name : Install JS package dependencies
35+ # (@pollen-robotics/reachy-mini-sdk). The SDK runtime lives at
36+ # ts/reachy-mini-sdk.ts (+ ts/lib/*.ts) and is compiled to
37+ # ts/dist/ by `npm run build:sdk`. The optional host shell lives
38+ # under ts/host/ and is bundled by `npm run build:host` into
39+ # ts/host/dist/, surfaced via the `./host*` subpath exports.
40+ - name : Install package dependencies
4041 run : npm ci
4142
42- # Build the host bundles into host/dist/. Required for the
43- # `./host`, `./host/auto`, `./host/embed`, and `./host/protocol`
44- # subpath exports to resolve in the published tarball.
45- - name : Build host bundles
43+ # Build the SDK dist/ + host bundles into host/dist/. Required
44+ # for the `.`, `./host`, `./host/auto`, `./host/embed`, and
45+ # `./host/protocol` subpath exports to resolve in the published
46+ # tarball.
47+ - name : Build SDK and host bundles
4648 run : npm run build
4749
4850 # pyproject.toml is the single source of truth for the version.
0 commit comments