change: testing the deployment to github pages #2
Workflow file for this run
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 Deploy | |
on: | |
push: | |
branches: | |
- feature/github-pages # if any push happens on branch `develop`, run this workflow. You could also add `paths` to detect changes in specific folder | |
jobs: | |
build-and-deploy: | |
name: Build and deploy Storybook | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
run: npm install --frozen-lockfile | |
# run: npm ci | |
- name: Build | |
run: npm run build-storybook | |
# run: npm run build-storybook | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: storybook-static # output folder from `npm run build-storybook` | |