feat(components): separating theme into light/dark files #196
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' | |
# Event for the workflow | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- 'libs/components/**' | |
- 'libs/icons/**' | |
- 'libs/tokens/**' | |
# List of jobs | |
jobs: | |
chromatic-deployment: | |
# Operating System | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
# Job steps | |
steps: | |
# 👇 Version 2 of the action | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # 👈 Required to retrieve git history | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: npm | |
- run: npm ci | |
# 👇 Adds Chromatic as a step in the workflow | |
- run: npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} --exit-once-uploaded --auto-accept-changes |