Skip to content

Commit 8b379fa

Browse files
Ani1357merllj-zimnowodaElderMatt
authored
feat: added semantic-release gh-actions (#1933)
Co-authored-by: Matthias Erll <[email protected]> Co-authored-by: jeho <[email protected]> Co-authored-by: ElderMatt <[email protected]>
1 parent 2c6e084 commit 8b379fa

File tree

4 files changed

+15837
-9883
lines changed

4 files changed

+15837
-9883
lines changed

.github/workflows/Releases.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
dry-run:
7+
type: boolean
8+
description: 'Dry run: Uncheck if you want to publish a release'
9+
default: true
10+
11+
jobs:
12+
release-please:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: Install dependencies
21+
run: |
22+
npm install semantic-release@24 @semantic-release/git @semantic-release/changelog -D
23+
- name: Release
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: npx semantic-release --dry-run=${{ github.event.inputs.dry-run }}

.releaserc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"branches": ["releases/rel-*", "main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/changelog",
8+
{
9+
"changelogFile": "CHANGELOG.md"
10+
}
11+
],
12+
[
13+
"@semantic-release/git",
14+
{
15+
"assets": ["CHANGELOG.md"],
16+
"message": "chore(release): ${nextRelease.version} CHANGELOG.md update [ci skip]\n\n${nextRelease.notes}"
17+
}
18+
],
19+
"@semantic-release/github"
20+
]
21+
}

0 commit comments

Comments
 (0)