Skip to content

Commit 8e70456

Browse files
committed
feat(ci): add semantic-release configuration and workflow
Add .releaserc.yaml and release GitHub Actions workflow to enable automated versioning and releases using semantic-release.
1 parent becc11f commit 8e70456

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
- name: Semantic Release
24+
run: |
25+
set -eux
26+
27+
npm init -y
28+
29+
npx -y semantic-release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
- '@semantic-release/commit-analyzer'
3+
- '@semantic-release/release-notes-generator'
4+
- '@semantic-release/github'

0 commit comments

Comments
 (0)