Update storybook.yml #5
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 | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: packages/crumbs-vue | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Set up Git user | |
run: | | |
git config --global user.name 'Your Name' | |
git config --global user.email 'you@example.com' | |
- name: Install Dependencies | |
run: npm install | |
- name: Build Storybook | |
run: npm run storybook:build | |
- name: Predeploy Storybook | |
run: npm run storybook:predeploy | |
- name: Deploy To GitHub Pages | |
run: npm run storybook:deploy |