Skip to content

add stubs for WASI preview 1 functions #19

add stubs for WASI preview 1 functions

add stubs for WASI preview 1 functions #19

Workflow file for this run

name: Build
on:
push:
branches:
- main
- release-*
tags:
- v*
pull_request:
branches:
- main
- release-*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run test
- run: npm run lint
- run: npm run build
- name: Is Release?
if: startswith(github.ref, 'refs/tags/v')
run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
- name: Publish to npm
if: env.DEPLOY_PACKAGE == 'true'
run: npm pack && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}