Merge pull request #7 from Jurfest/feature/utils #1
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 Storybook to Chromatic | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
# Install dependencies based on the package-lock.json file for reliability and speed | |
- name: Install dependencies | |
run: npm ci | |
# Optional: Uncomment the build-storybook step to apply custom build steps or to verify the build beforehand | |
# - name: Build Storybook | |
# run: npm run build-storybook | |
# Deploy Storybook using Chromatic's streamlined process (includes building the Storybook | |
- name: Deploy Storybook | |
run: npx chromatic | |
env: | |
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |