Skip to content

Commit a2a6d8c

Browse files
committed
chore: create release
1 parent a9ef7cd commit a2a6d8c

File tree

2 files changed

+72
-2
lines changed

2 files changed

+72
-2
lines changed

.github/workflows/release.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ on:
1212
workflow_dispatch:
1313

1414
permissions:
15-
contents: write
15+
contents: write # to be able to publish a GitHub release
16+
issues: write # to be able to comment on released issues
17+
pull-requests: write # to be able to comment on released pull requests
1618
packages: read
1719

1820
jobs:
@@ -37,13 +39,34 @@ jobs:
3739
needs:
3840
- ci
3941

42+
semantic-release:
43+
runs-on: [ubuntu-20.04]
44+
needs:
45+
- ci
46+
name: Test semantic release
47+
steps:
48+
- uses: actions/checkout@v4
49+
with:
50+
fetch-depth: 0
51+
52+
- name: setup node
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: 20
56+
57+
- name: create release
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
run: npx semantic-release
61+
4062
package-tauri:
63+
if: false
4164
needs:
4265
- ci
4366
runs-on: ${{ matrix.platform }}
4467
strategy:
4568
matrix:
46-
platform: [macos-latest, ubuntu-20.04, windows-latest]
69+
platform: [macos-latest]
4770
name: Package Tauri app
4871

4972
steps:

package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,52 @@
6969
"typescript": "^5.2.2",
7070
"vite": "^5.1.4",
7171
"vitest": "^1.3.1"
72+
},
73+
"release": {
74+
"branches": [
75+
"main"
76+
],
77+
"plugins": [
78+
[
79+
"@semantic-release/commit-analyzer",
80+
{
81+
"preset": "conventionalcommits",
82+
"releaseRules": [
83+
{
84+
"type": "build",
85+
"release": "patch"
86+
},
87+
{
88+
"type": "chore",
89+
"release": "patch"
90+
}
91+
]
92+
}
93+
],
94+
[
95+
"@semantic-release/release-notes-generator",
96+
{
97+
"preset": "conventionalcommits",
98+
"presetConfig": {
99+
"types": [
100+
{
101+
"type": "feat",
102+
"section": "Features"
103+
},
104+
{
105+
"type": "fix",
106+
"section": "Bug Fixes"
107+
},
108+
{
109+
"type": "build",
110+
"section": "Dependencies and Other Build Updates",
111+
"hidden": false
112+
}
113+
]
114+
}
115+
}
116+
],
117+
"@semantic-release/github"
118+
]
72119
}
73120
}

0 commit comments

Comments
 (0)