Skip to content

Closes: #16 Add the ability to control the simulation from JS (#24) #1

Closes: #16 Add the ability to control the simulation from JS (#24)

Closes: #16 Add the ability to control the simulation from JS (#24) #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache emsdk
uses: actions/cache@v4
with:
path: ~/emsdk
key: emsdk-${{ runner.os }}-${{ hashFiles('emsdk_manifest.txt') }}
- name: Install emsdk
run: |
if [ ! -d "$HOME/emsdk" ]; then
git clone https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
fi
cd "$HOME/emsdk"
./emsdk install 3.1.51
./emsdk activate 3.1.51
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install deps
run: npm ci
- name: Build & test
run: |
source "$HOME/emsdk/emsdk_env.sh"
npm test
- name: Publish package
if: success()
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
source "$HOME/emsdk/emsdk_env.sh"
npm publish --access public