Skip to content

Commit 473c2b0

Browse files
committed
add release.yml
1 parent f422b59 commit 473c2b0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
type:
7+
required: true
8+
type: choice
9+
options:
10+
- "major"
11+
- "minor"
12+
- "patch"
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version-file: .tool-versions
24+
25+
- run: npm ci
26+
27+
- run: npm run build
28+
29+
- uses: stefanzweifel/git-auto-commit-action@v5
30+
with:
31+
commit_message: "build assets"
32+
33+
- run: npm version ${{ github.event.inputs.type }}
34+
35+
- run: git push --follow-tags

0 commit comments

Comments
 (0)