Skip to content

Commit d5e1de3

Browse files
committed
fix: lib
1 parent 94275a6 commit d5e1de3

File tree

5 files changed

+2075
-53
lines changed

5 files changed

+2075
-53
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

.releaserc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,20 @@
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",
@@ -79,6 +85,7 @@
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
}

tsconfig.build.tsbuildinfo

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)