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 3636 "storybook:start" : " start-storybook -p 6006" ,
3737 "storybook:build" : " build-storybook" ,
3838 "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"
4041 },
4142 "dependencies" : {
4243 "react" : " ^18.2.0" ,
4344 "react-dom" : " ^18.2.0"
4445 },
4546 "devDependencies" : {
4647 "@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" ,
4753 "@storybook/addon-actions" : " ^6.5.13" ,
4854 "@storybook/addon-essentials" : " ^6.5.13" ,
4955 "@storybook/addon-interactions" : " ^6.5.13" ,
7985 "nodemon" : " 2.0.20" ,
8086 "prettier" : " 2.7.1" ,
8187 "rimraf" : " 3.0.2" ,
88+ "semantic-release" : " ^19.0.5" ,
8289 "typescript" : " 4.8.4"
8390 }
8491}
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments