Skip to content

Commit

Permalink
build: 👷 fix chromatic workflow on forked repos
Browse files Browse the repository at this point in the history
  • Loading branch information
edjonesdev committed Mar 16, 2023
1 parent b08990e commit bac57ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ jobs:
# Operating System
runs-on: ubuntu-latest
# Job steps
env:
HAS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
steps:
- uses: actions/checkout@v1
- name: Install dependencies
if: ${{ env.HAS_CHROMATIC_PROJECT_TOKEN }}
# 👇 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
if: ${{ env.HAS_CHROMATIC_PROJECT_TOKEN }}
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
Expand Down

0 comments on commit bac57ac

Please sign in to comment.