Skip to content

Commit 5a8074a

Browse files
committed
chore: add auto release actions
1 parent 9e6033e commit 5a8074a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/dist-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
- run: npm i
15+
16+
- name: Build
17+
run: npm run build:npm
18+
19+
- name: Release
20+
uses: softprops/action-gh-release@v2
21+
if: startsWith(github.ref, 'refs/tags/')
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
files: dist/*

0 commit comments

Comments
 (0)