Skip to content

Commit f22aba7

Browse files
committed
feat: add changelog automation
1 parent 6a3a8f3 commit f22aba7

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/bump-version.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .github/workflows/bump-version.yml
21
name: Bump Version on Merge to Main
32

43
on:
@@ -14,26 +13,33 @@ jobs:
1413
id-token: write
1514

1615
steps:
17-
- uses: actions/checkout@v4
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
1818
with:
19-
fetch-depth: 0 # Fetch all history for all branches and tags
19+
fetch-depth: 0 # Required for semantic-release to access full git history
2020

21-
- uses: actions/setup-python@v5
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
2223
with:
2324
python-version: "3.11"
2425

25-
- run: pip install python-semantic-release
26+
- name: Install Poetry
27+
run: |
28+
curl -sSL https://install.python-poetry.org | python3 -
29+
echo "$HOME/.local/bin" >> $GITHUB_PATH
30+
31+
- name: Install dependencies
32+
run: |
33+
poetry install
34+
poetry add --group dev python-semantic-release
2635
27-
- name: Configure Git
36+
- name: Configure Git user
2837
run: |
2938
git config user.name "github-actions[bot]"
3039
git config user.email "github-actions[bot]@users.noreply.github.com"
3140
3241
- name: Run Semantic Release
3342
env:
3443
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
run: semantic-release version
44+
run: poetry run semantic-release publish
3645

37-
- name: Push changes
38-
run: |
39-
git push --follow-tags

0 commit comments

Comments
 (0)