fix: calc change count (#556) #178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release WASM | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: macos-14 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Setup Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
cache-dependency-path: ./pnpm-lock.yaml | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v2.x | |
- name: Install wasm-opt | |
run: npm i wasm-opt -g | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: "latest" | |
- name: Install nextest | |
uses: taiki-e/install-action@v1 | |
with: | |
tool: nextest | |
- run: rustup toolchain install stable --profile minimal | |
- run: rustup target add wasm32-unknown-unknown | |
- uses: jetli/wasm-bindgen-action@v0.2.0 | |
with: | |
version: "0.2.92" | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build WASM release-build | |
run: pnpm release-wasm | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
title: "chore: version packages" | |
commit: "chore: version packages" | |
publish: pnpm changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |