Skip to content

Commit d09eca1

Browse files
committed
ci: Add semver workflow
1 parent 75ea1a6 commit d09eca1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/semver.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Semver Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
if: contains(github.event.commits[0].message, 'chore(release)') == false
11+
name: Release
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
env:
15+
DRY_RUN: false
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Release
21+
id: release
22+
uses: ridedott/release-me-action@v3
23+
env:
24+
GITHUB_TOKEN: ${{ github.token }}
25+
with:
26+
dry-run: ${{ env.DRY_RUN }}
27+
release-branches: '["main"]'
28+
release-rules-append: |
29+
[
30+
{ "release": "patch", "type": "build" },
31+
{ "release": "patch", "type": "chore" },
32+
{ "release": "patch", "type": "ci" },
33+
{ "release": "patch", "type": "improvement" },
34+
{ "release": "patch", "type": "refactor" },
35+
{ "release": false, "subject": "*\\[skip release\\]*" }
36+
]

0 commit comments

Comments
 (0)