Skip to content

Commit 85d5bda

Browse files
ci: added semantic release
1 parent 02d7dc4 commit 85d5bda

4 files changed

Lines changed: 57 additions & 51 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
- name: Semantic Release
21+
uses: cycjimmy/semantic-release-action@v6
22+
with:
23+
extra_plugins: |
24+
@semantic-release/changelog
25+
@semantic-release/git
26+
@anolilab/multi-semantic-release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"branches": ["master", "ci/semantic-release"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/changelog",
8+
{
9+
"changelogFile": "./CHANGELOG.md"
10+
}
11+
],
12+
"@semantic-release/git",
13+
"@semantic-release/github",
14+
[
15+
"@semantic-release/npm",
16+
{
17+
"npmPublish": false
18+
}
19+
],
20+
"@anolilab/multi-semantic-release"
21+
],
22+
"dryRun": true
23+
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,11 @@
2626
"dotenv": "^16.5.0",
2727
"typescript": "^5.8.3",
2828
"vitest": "^3.1.2"
29+
},
30+
"multi-release": {
31+
"deps": {
32+
"bump": "inherit"
33+
},
34+
"tagFormat": "${name}@${version}"
2935
}
3036
}

0 commit comments

Comments
 (0)