The wasm-pack publish command will create a tarball of your wasm project, and publish it to the npm registry.
wasm-pack publish