Skip to content

Commit 53a0342

Browse files
author
Stephan Wentz
committed
fix: Add semantic release config and github action
1 parent b9d6265 commit 53a0342

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/release.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Release"
4+
5+
on:
6+
push:
7+
branches:
8+
- "main"
9+
10+
jobs:
11+
tests:
12+
name: "Create Release"
13+
14+
runs-on: "ubuntu-latest"
15+
16+
steps:
17+
- name: "Checkout"
18+
uses: "actions/checkout@v2"
19+
20+
- uses: "actions/setup-node@v2"
21+
with:
22+
node-version: 'lts/*'
23+
24+
- name: "Run semantic-release"
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: npx semantic-release

.releaserc

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2-
"extends": [
3-
"@brainbits/semantic-release-config-symfony",
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/github"
46
],
5-
"assets": ["CHANGELOG.md"],
6-
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
7+
"branches": [
8+
"main"
9+
]
710
}

0 commit comments

Comments
 (0)