Skip to content

Commit

Permalink
chore: cd to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
hiukky committed Mar 6, 2022
1 parent 405b674 commit ee39c2f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v2-beta
with:
node-version: 16

- name: Install and Build
run: |
yarn
yarn sb:build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages
folder: storybook-static
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prebuild": "rimraf dist",
"build": "rollup -c",
"sb:server": "start-storybook -p 6006",
"sb:build": "npm run build-storybook",
"sb:build": "build-storybook",
"sb:deploy": "gh-pages -d storybook-static",
"test": "jest",
"test:cov": "jest --coverage --watchAll",
Expand Down

0 comments on commit ee39c2f

Please sign in to comment.