Skip to content

v0.2.1

v0.2.1 #3

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 --scope kitabisa --target bundler
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
scope: '@kitabisa'
- 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 }}