Skip to content

Commit

Permalink
add wasm build to npm publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Mar 9, 2024
1 parent 4d663a1 commit 2e64868
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/hyperclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@polytope-labs'
- run: |
cd modules/client/pkg
npm publish --access public

- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
rustup target add wasm32-unknown-unknown
- name: Build and Publish
working-directory: modules/client
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
wasm-pack build --release --no-default-features --features=wasm
npm publish --access public

0 comments on commit 2e64868

Please sign in to comment.