Merge pull request #4462 from Codeinwp/fix/labels #1017
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: Build and Deploy StoryBook 🚀 | |
| on: | |
| push: | |
| branches: | |
| - development | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node 16 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 16.x | |
| cache: "yarn" | |
| - name: Install and Build 🔧 | |
| run: | | |
| yarn install --frozen-lockfile | |
| yarn run build | |
| yarn run build-storybook | |
| cp ./.storybook/readme.md ./storybook-static/readme.md | |
| - name: Deploy 🚀 | |
| uses: JamesIves/[email protected] | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
| BRANCH: storybook-pages # Deploy to. | |
| FOLDER: storybook-static # Deploy this. | |
| CLEAN: true # Remove deleted files from deploy branch |