-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (42 loc) · 1.2 KB
/
build_and_publish_jsr.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
name: Publish on JSR
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
export PATH="$HOME/.cargo/bin:$PATH"
rustc --version
cargo --version
- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
wasm-pack --version
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Build
run: |
deno task build --bypass-pkg-check --bypass-rs-check
- name: Apply Patch
run: |
sed -i "%s/!:/:/g" pkg/si_img.d.ts
- name: Typecheck
run: |
deno check src/**.ts
- name: Test
run: |
deno task test
- name: Publish to JSR
run: deno publish