migration: upgrade storybook to ver. 7 (#534) #167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gh-pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'stories/**/*' | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Setup expo cli | |
uses: expo/expo-github-action@v8 | |
with: | |
expo-version: 4.x | |
- name: Install dependencies | |
run: yarn install --network-concurrency 1 | |
- name: Lerna setup for packages | |
run: yarn pre | |
- name: Install packages and build storybook | |
run: | | |
yarn build:storybook | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
publish_branch: gh-pages | |
publish_dir: ./web-build | |
SCRIPT_MODE: true |