Skip to content

v0.22.0

v0.22.0 #59

Workflow file for this run

name: Node.js Package
on:
release:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: yarn
- name: Prepare ONNX
run: yarn create-onnx -t
- name: Test
run: yarn test:lib --bail
publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install
run: yarn
- name: Build
run: yarn build:npm
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}