Skip to content

Commit cd57d80

Browse files
Merge pull request #57 from CrackingShells/dev
ci: fix pushing new version files to `main`
2 parents 77364d6 + 442f299 commit cd57d80

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/semantic-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@ jobs:
3939
runs-on: ubuntu-latest
4040
if: github.event_name == 'push'
4141
steps:
42+
- name: Generate GitHub App Token
43+
id: generate_token
44+
uses: tibdex/github-app-token@v2
45+
with:
46+
app_id: ${{ secrets.SEMANTIC_RELEASE_APP_ID }}
47+
private_key: ${{ secrets.SEMANTIC_RELEASE_PRIVATE_KEY }}
48+
4249
- name: Checkout
4350
uses: actions/checkout@v4
4451
with:
4552
fetch-depth: 0
46-
token: ${{ secrets.GITHUB_TOKEN }}
53+
token: ${{ steps.generate_token.outputs.token }}
4754

4855
- name: Setup Node.js
4956
uses: actions/setup-node@v4
@@ -58,5 +65,5 @@ jobs:
5865

5966
- name: Release
6067
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
6269
run: npx semantic-release

.releaserc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"repositoryUrl": "https://github.com/CrackingShells/Hatchling",
3+
"tagFormat": "v${version}",
34
"branches": [
45
"main",
56
{

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,14 @@ python run_tests.py --only feature,regression
209209

210210
## Release Process
211211

212-
Releases are fully automated using semantic-release:
212+
Releases are fully automated using semantic-release with GitHub App integration:
213213

214214
1. **Commits are analyzed** for conventional commit format
215215
2. **Version is calculated** based on commit types
216216
3. **Changelog is generated** from commit messages
217-
4. **GitHub release is created** with release notes
218-
5. **Version is updated** in pyproject.toml
217+
4. **Version files are updated** (pyproject.toml, CHANGELOG.md)
218+
5. **Changes are committed** back to repository using GitHub App
219+
6. **GitHub release is created** with release notes and tags
219220

220221
### Version Impact
221222

0 commit comments

Comments
 (0)