Skip to content

v0.1.0

v0.1.0 #1

Workflow file for this run

name: Publish
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build WASM package
run: wasm-pack build --target bundler
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
working-directory: pkg
run: npm install
- name: Publish to npm
working-directory: pkg
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}