Skip to content

Commit dff04ca

Browse files
committed
ci: add semantic release
1 parent c357401 commit dff04ca

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Semantic Release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # to be able to publish a GitHub release
15+
issues: write # to be able to comment on released issues
16+
pull-requests: write # to be able to comment on released pull requests
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "lts/*"
28+
29+
- name: Install Semantic Release
30+
run: >
31+
npm install
32+
semantic-release
33+
conventional-changelog-conventionalcommits
34+
@semantic-release/changelog
35+
@semantic-release/exec
36+
@semantic-release/git
37+
semantic-release-major-tag
38+
39+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
40+
run: npm audit signatures
41+
42+
- name: Run Semantic Release
43+
run: npx semantic-release

.releaserc.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
branches:
3+
- main
4+
plugins:
5+
- - "@semantic-release/commit-analyzer"
6+
- preset: conventionalcommits
7+
- - "@semantic-release/release-notes-generator"
8+
- preset: conventionalcommits
9+
- "@semantic-release/github"
10+
- - "@semantic-release/changelog"
11+
- changelogTitle: '# Changelog'
12+
- - "@semantic-release/git"
13+
- assets:
14+
- CHANGELOG.md
15+
- semantic-release-major-tag

0 commit comments

Comments
 (0)