File tree Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
- name : publish
2
-
3
- on : workflow_dispatch
1
+ name : Publish
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' v*'
4
6
5
7
jobs :
6
8
publish :
33
35
npm publish --access=public
34
36
env :
35
37
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
+ });
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " mince"
3
- version = " 0.0.1 "
3
+ version = " 0.0.2 "
4
4
authors = [" Esteban Borai <estebanborai@gmail.com>" ]
5
5
edition = " 2021"
6
6
Original file line number Diff line number Diff line change 2
2
rm -rf ./ pkg
3
3
4
4
build : clean
5
- wasm-pack build --target web -- release --scope whizzes
5
+ wasm-pack build --release --scope whizzes
6
6
7
7
dev : clean
8
8
wasm-pack build --target web --dev
You can’t perform that action at this time.
0 commit comments