Skip to content

Commit e3adc8b

Browse files
author
Stephan Wentz
committed
ci: Add semantic release
1 parent e557225 commit e3adc8b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
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+
- "master"
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@v3"
19+
20+
- uses: "actions/setup-node@v3"
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

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

0 commit comments

Comments
 (0)