merge 2.0.0 (#48) #23
Workflow file for this run
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 Chromatic | |
on: | |
push: | |
paths: | |
- packages/flitter/**/* | |
- packages/story/**/* | |
- .github/workflows/chromatic.yml | |
branches: | |
- dev | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
environment: CHROMATIC_PROJECT_TOKEN | |
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: 18.x | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Build Storybook | |
run: npm run story:build | |
- name: Deploy to Chromatic | |
run: cd packages/story && npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} --auto-accept-changes |