Merge pull request #201 from PRO-Robotech/feature/dev #69
This file contains hidden or 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: Deploy Storybook to GitHub Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| # https://storybook.js.org/docs/sharing/publish-storybook#github-pages | |
| deploy: | |
| runs-on: ubuntu-latest | |
| # Job steps | |
| steps: | |
| # Manual Checkout | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Set up Node | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow | |
| - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 | |
| with: | |
| install_command: rm package-lock.json; npm install --package-lock-only; npm i -D @swc/core; npm install # default: npm ci | |
| build_command: npm run storybook:build # default: npm run build-storybook | |
| path: storybook-static # default: dist/storybook | |
| checkout: false # default: true |