Upgrade storybook #99
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: StoryBook and Typedoc Deployment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-storybook: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci --unsafe-perm | |
- run: npm run build | |
- run: npm test | |
- run: npm run predeploy | |
- run: git config --global user.email "[email protected]" | |
- run: git config --global user.name "StoryBook" | |
- name: Deploy with gh-pages | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npm run deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |