-
Notifications
You must be signed in to change notification settings - Fork 76
58 lines (51 loc) · 1.46 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
name: Release WASM
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: macos-14
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: pnpm/action-setup@v2
with:
version: 8
- 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.90"
- 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 }}