Skip to content

1.0.1

1.0.1 #10

Workflow file for this run

name: build
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Setup wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'
- name: Build package
run: make build
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
- name: Publish
working-directory: ./pkg
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}