File tree Expand file tree Collapse file tree 5 files changed +2075
-53
lines changed Expand file tree Collapse file tree 5 files changed +2075
-53
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish package to npm
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - ' main'
8
+
9
+ jobs :
10
+ publish :
11
+ runs-on : ubuntu-latest
12
+ env :
13
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v3
18
+ - name : Install
19
+ run : yarn install --frozen-lockfile
20
+ - name : Build
21
+ run : yarn build
22
+ - name : Release
23
+ run : yarn release
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches" : [
3
+ " +([0-9])?(.{+([0-9]),x}).x" ,
4
+ " main" ,
5
+ " next" ,
6
+ " next-major" ,
7
+ { "name" : " beta" , "prerelease" : true },
8
+ { "name" : " alpha" , "prerelease" : true }
9
+ ],
10
+ "plugins" : [
11
+ " @semantic-release/commit-analyzer" ,
12
+ " @semantic-release/release-notes-generator" ,
13
+ " @semantic-release/npm" ,
14
+ " @semantic-release/github" ,
15
+ " @semantic-release/git"
16
+ ]
17
+ }
Original file line number Diff line number Diff line change 36
36
"storybook:start" : " start-storybook -p 6006" ,
37
37
"storybook:build" : " build-storybook" ,
38
38
"storybook:deploy" : " npm run storybook:build && gh-pages -d storybook-static" ,
39
- "storybook:deploy:action" : " npm run storybook:build && gh-pages -d storybook-static -u \" github-actions-bot <support+actions@github.com>\" "
39
+ "storybook:deploy:action" : " npm run storybook:build && gh-pages -d storybook-static -u \" github-actions-bot <support+actions@github.com>\" " ,
40
+ "release" : " semantic-release"
40
41
},
41
42
"dependencies" : {
42
43
"react" : " ^18.2.0" ,
43
44
"react-dom" : " ^18.2.0"
44
45
},
45
46
"devDependencies" : {
46
47
"@babel/core" : " ^7.20.2" ,
48
+ "@semantic-release/commit-analyzer" : " ^9.0.2" ,
49
+ "@semantic-release/git" : " ^10.0.1" ,
50
+ "@semantic-release/github" : " ^8.0.6" ,
51
+ "@semantic-release/npm" : " ^9.0.1" ,
52
+ "@semantic-release/release-notes-generator" : " ^10.0.3" ,
47
53
"@storybook/addon-actions" : " ^6.5.13" ,
48
54
"@storybook/addon-essentials" : " ^6.5.13" ,
49
55
"@storybook/addon-interactions" : " ^6.5.13" ,
79
85
"nodemon" : " 2.0.20" ,
80
86
"prettier" : " 2.7.1" ,
81
87
"rimraf" : " 3.0.2" ,
88
+ "semantic-release" : " ^19.0.5" ,
82
89
"typescript" : " 4.8.4"
83
90
}
84
91
}
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments