Skip to content

Commit 1155230

Browse files
committed
feat: use bundle over web
1 parent 0b80736 commit 1155230

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: publish
2-
3-
on: workflow_dispatch
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
46

57
jobs:
68
publish:
@@ -33,3 +35,21 @@ jobs:
3335
npm publish --access=public
3436
env:
3537
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38+
39+
create-release:
40+
name: Create a release
41+
runs-on: ubuntu-latest
42+
needs: publish
43+
steps:
44+
- name: Checkout Source Code
45+
uses: actions/checkout@v2
46+
47+
- name: Create Release Notes
48+
uses: actions/github-script@v5
49+
with:
50+
github-token: ${{secrets.GITHUB_TOKEN}}
51+
script: |
52+
await github.request(`POST /repos/${{ github.repository }}/releases`, {
53+
tag_name: "${{ github.ref }}",
54+
generate_release_notes: true
55+
});

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mince"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
authors = ["Esteban Borai <estebanborai@gmail.com>"]
55
edition = "2021"
66

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ clean:
22
rm -rf ./pkg
33

44
build: clean
5-
wasm-pack build --target web --release --scope whizzes
5+
wasm-pack build --release --scope whizzes
66

77
dev: clean
88
wasm-pack build --target web --dev

0 commit comments

Comments
 (0)