Skip to content

Commit 7891c93

Browse files
ci(release): minimal semantic-release (#72)
* ci(automerge): run only for dependabot PRs (avoid false red) * ci(release): minimal semantic-release (tags + GH release)
1 parent 4818dfb commit 7891c93

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

.github/workflows/semantic-release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ on:
44
branches: [main]
55
permissions:
66
contents: write
7+
issues: write
78
pull-requests: write
8-
id-token: write
99
jobs:
1010
release:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
with: { fetch-depth: 0 }
15-
- uses: actions/setup-python@v5
16-
with: { python-version: '3.12' }
17-
- run: python -m pip install -U pip
18-
- run: python -m pip install python-semantic-release==9.* build
19-
- name: Run semantic-release (no PyPI upload)
15+
- uses: actions/setup-node@v4
16+
with: { node-version: '20' }
17+
- uses: cycjimmy/semantic-release-action@v4
18+
with:
19+
extra_plugins: |
20+
@semantic-release/commit-analyzer
21+
@semantic-release/release-notes-generator
22+
@semantic-release/changelog
23+
@semantic-release/github
2024
env:
21-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
run: semantic-release version && semantic-release publish
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"branches": ["main"],
3+
"tagFormat": "v${version}",
4+
"plugins": [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" }],
8+
"@semantic-release/github"
9+
]
10+
}

0 commit comments

Comments
 (0)