-
Notifications
You must be signed in to change notification settings - Fork 76
60 lines (53 loc) · 1.54 KB
/
release_wasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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/[email protected]
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/[email protected]
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 }}