Skip to content

feat(js): Add wasm export path and improve bundler compatibility #1

feat(js): Add wasm export path and improve bundler compatibility

feat(js): Add wasm export path and improve bundler compatibility #1

Workflow file for this run

name: Publish and Create Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm install -g npm@latest
- run: corepack enable
- run: corepack prepare yarn@4.12.0 --activate
- uses: actions/cache@v4
with:
path: |
.yarn/cache
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build native and compile dictionaries
run: |
cmake -B build -DBUILD_WASM=OFF
cmake --build build --parallel
cmake --build build --target build-dict
- name: Run C++ tests
run: ctest --test-dir build --output-on-failure
- run: yarn install --immutable
- run: yarn lint
- run: yarn build
- run: yarn test
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}