Skip to content

housekeeping (#3)

housekeeping (#3) #3

Workflow file for this run

name: Build and Deploy
on:
push:
# Trigger the action only when files change in the folders defined here
paths: ["src/components/**", "tailwind.config.js", "src/index.css", ".storybook"]
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install Node.js 18 📗
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm 📦
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
pnpm install
pnpm run build-storybook
touch storybook-static/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: storybook-static # The folder that the build-storybook script generates files.
CLEAN: true # Automatically remove deleted files from the deploy branch
TARGET_FOLDER: / # The folder that we serve our Storybook files from