We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f422b59 commit 473c2b0Copy full SHA for 473c2b0
.github/workflows/release.yml
@@ -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
31
+ commit_message: "build assets"
32
33
+ - run: npm version ${{ github.event.inputs.type }}
34
35
+ - run: git push --follow-tags
0 commit comments