Skip to content

[feature] automated build and next release #13

[feature] automated build and next release

[feature] automated build and next release #13

name: Deploy Storybook to GitHub Pages
on:
push:
# tags:
# - "v[0-1].*"
branches:
- next
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'next'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build Storybook
run: npx storybook build
- name: Build the library
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: storybook-static