fix: type button and refactor SectionWrapper #1019
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
# .github/workflows/chromatic.yml | |
# Workflow name | |
name: "Chromatic" | |
defaults: | |
run: | |
working-directory: react | |
# Event for the workflow | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
types: [opened, reopened, synchronize] | |
# List of jobs | |
jobs: | |
chromatic-deployment: | |
# Operating System | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: react | |
# Job steps | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Required for v2 | |
- name: Install dependencies | |
run: npm i | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
workingDir: react | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
onlyChanged: true | |
exitOnceUploaded: true | |
autoAcceptChanges: main | |
# Skip running Chromatic on dependabot PRs | |
skip: dependabot/** | |
# Only run when the react directory has changes | |
untraced: "!(react)/**" |