Skip to content

Commit 4552fe5

Browse files
brtkwrclaude
andcommitted
feat: auto-tag on push to main
Use mathieudutour/github-tag-action to automatically bump version and create tags when pushing to main. Version bump is determined by conventional commit prefixes (fix: patch, feat: minor). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9cc0ba7 commit 4552fe5

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
test:
9+
uses: ./.github/workflows/test.yaml
10+
11+
tag:
12+
needs: test
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Bump version and push tag
22+
uses: mathieudutour/github-tag-action@v6.2
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
default_bump: patch

.github/workflows/test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Test
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
75
branches: [main]
86
workflow_call:

0 commit comments

Comments
 (0)