Skip to content

Commit 2e64868

Browse files
committed
add wasm build to npm publish action
1 parent 4d663a1 commit 2e64868

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/hyperclient.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,16 @@ jobs:
1818
node-version: '20.x'
1919
registry-url: 'https://registry.npmjs.org'
2020
scope: '@polytope-labs'
21-
- run: |
22-
cd modules/client/pkg
23-
npm publish --access public
21+
22+
- name: Install wasm-pack
23+
run: |
24+
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
25+
rustup target add wasm32-unknown-unknown
26+
27+
- name: Build and Publish
28+
working-directory: modules/client
2429
env:
2530
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: |
32+
wasm-pack build --release --no-default-features --features=wasm
33+
npm publish --access public

0 commit comments

Comments
 (0)