Merge branch 'release/0.18.0' #372
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: Deploy to GitHub Pages | |
on: | |
pull_request: | |
branches: [develop] | |
types: [closed] | |
push: | |
branches: [main] | |
jobs: | |
build-and-deploy: | |
name: Build storybook and deploy to github pages | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '21.x' | |
- name: 📦 Install | |
run: npm install | |
- name: 🔧 Build | |
run: npm run build:storybook | |
env: | |
NODE_OPTIONS: --max_old_space_size=4096 | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: storybook-static | |
branch: gh-pages | |
token: ${{ secrets.GITHUB_TOKEN }} |