Skip to content

Commit

Permalink
Merge pull request #1 from clefayomide/development-1
Browse files Browse the repository at this point in the history
Create yml
  • Loading branch information
clefayomide committed Mar 8, 2023
2 parents 2d5fe01 + 17b3ea5 commit 6e29e8c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# .github/workflows/chromatic.yml

# Workflow name
name: 'Chromatic'

# Event for the workflow
on:
push:
branches: ['development']
pull_request:
branches: ['development']

# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- name: Install dependencies
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
run: yarn
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1

# Chromatic GitHub Action options
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} # 👇 Chromatic projectToken, refer to the manage page to obtain it.
debug: true #Output verbose debugging information

0 comments on commit 6e29e8c

Please sign in to comment.