Skip to content

Commit 7c059a4

Browse files
committed
build(release): added automated semantic releases
1 parent bc50f0a commit 7c059a4

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Release
15+
uses: cycjimmy/semantic-release-action@v2.1.3
16+
with:
17+
extra_plugins: |
18+
@semantic-release/changelog
19+
@semantic-release/git
20+
branch: master
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"tagFormat": "v${version}",
3+
"plugins": [
4+
["@semantic-release/commit-analyzer", { "preset": "angular" }],
5+
["@semantic-release/release-notes-generator", { "preset": "angular" }],
6+
["@semantic-release/changelog", { "preset": "angular" }],
7+
["@semantic-release/npm", { "npmPublish": false }],
8+
["@semantic-release/git", {
9+
"assets": [
10+
"package.json",
11+
"CHANGELOG.md"
12+
],
13+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
14+
}],
15+
"@semantic-release/github"
16+
]
17+
}

0 commit comments

Comments
 (0)