Skip to content

Commit 253934c

Browse files
committed
Added SemVer config
1 parent 50ec8c0 commit 253934c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
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
16+
with:
17+
extra_plugins: |
18+
@semantic-release/changelog
19+
@semantic-release/git
20+
branch: main
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

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

0 commit comments

Comments
 (0)