Add publish workflow and minimal npm package for WASM#3117
Add publish workflow and minimal npm package for WASM#3117copybara-service[bot] merged 11 commits intogoogle-deepmind:mainfrom
Conversation
|
@JayFoxRox here is the new PR :) |
267aba0 to
a9edc5d
Compare
Can we call the package just
We can consider having a separate package for this, maybe |
We can have the asset names what ever we want, what I am talking about here is something else: how do we want to name the package in npm registry?. Right now is
So yes, we can call it just
I will add this to the TODOs for a next iteration. |
We should also name the package "mujoco" |
191b7e5 to
c17eb43
Compare


Summary
Adds a CI workflow to build and publish the generated WebAssembly runtime to npm.
distfolder contentwasm/package.json.Deployment notes
NPM_ACCESS_TOKENwith publish rights. (Already set by @okmatija)npm --no-git-tag-version.Important
I used
mujoco_wasmas package name here but we might want to use a "scoped" one for mujoco org:@mujoco/wasm. We need to make a decision before merging.Follow-ups / Future work
.wasmfile during runtime takes decent amount of non straightforward configuration).pthreads-enabledandpthreads-freebuilds if we want maximum consumer compatibility.