File tree Expand file tree Collapse file tree 4 files changed +2496
-63
lines changed Expand file tree Collapse file tree 4 files changed +2496
-63
lines changed Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ release :
8
+ permissions :
9
+ contents : write
10
+ issues : write
11
+ pull-requests : write
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ with :
16
+ fetch-depth : 0
17
+ persist-credentials : true
18
+
19
+ - name : Setup Node.js
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ node-version : " 20"
23
+
24
+ - name : Install dependencies
25
+ run : yarn install
26
+
27
+ - name : Build project
28
+ run : yarn build
29
+
30
+ - name : Create release
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ run : |
34
+ npx semantic-release
Original file line number Diff line number Diff line change 38
38
},
39
39
"devDependencies" : {
40
40
"@chromatic-com/storybook" : " ^1.5.0" ,
41
+ "@semantic-release/git" : " ^10.0.1" ,
42
+ "@semantic-release/github" : " ^10.1.4" ,
41
43
"@storybook/addon-essentials" : " ^8.1.10" ,
42
44
"@storybook/addon-interactions" : " ^8.1.10" ,
43
45
"@storybook/addon-links" : " ^8.1.10" ,
58
60
"postcss" : " ^8.4.38" ,
59
61
"react" : " ^17.0.0 || ^18.0.0" ,
60
62
"react-dom" : " ^17.0.0 || ^18.0.0" ,
63
+ "semantic-release" : " ^24.0.0" ,
61
64
"storybook" : " ^8.1.10" ,
62
65
"tailwindcss" : " ^3.4.4" ,
63
66
"tsup" : " ^8.1.0" ,
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ branches : [ "main" ] ,
3
+ plugins : [
4
+ "@semantic-release/commit-analyzer" ,
5
+ "@semantic-release/release-notes-generator" ,
6
+ "@semantic-release/github" ,
7
+ [
8
+ "@semantic-release/git" ,
9
+ {
10
+ assets : [ "dist/*" ] ,
11
+ message :
12
+ "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" ,
13
+ } ,
14
+ ] ,
15
+ ] ,
16
+ } ;
You can’t perform that action at this time.
0 commit comments