Skip to content

image preview

image preview #42

Workflow file for this run

name: Deploy to Chromatic
on:
push:
branches:
- temp
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.17.1
- name: Install dependencies
run: |
cd packages/svelte-notion-page
npm ci
- name: Build Storybook
run: |
cd packages/svelte-notion-page
npm run build-storybook
- name: Deploy to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/svelte-notion-page
buildScriptName: build-storybook
autoAcceptChanges: true