Skip to content

Commit 9bb2de8

Browse files
committed
feat: Add CI configuration
1 parent ba4deb9 commit 9bb2de8

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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@v3
12+
with:
13+
fetch-depth: 0
14+
persist-credentials: false
15+
- name: Release
16+
uses: cycjimmy/semantic-release-action@v3.1.2
17+
with:
18+
extra_plugins: |
19+
@semantic-release/changelog
20+
@semantic-release/git
21+
branch: main
22+
env:
23+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.releaserc.json

Lines changed: 14 additions & 0 deletions
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)