21980: Generics to support additional controls and information for pr… #128
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 | |
name: "Chromatic" | |
# https://www.chromatic.com/docs/github-actions/#recommended-configuration-for-build-events | |
on: push | |
jobs: | |
chromatic: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
env: | |
NPM_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }} | |
run: | | |
echo -e "\n//dpbuild.jfrog.io/:_authToken=${NPM_TOKEN}" >> .npmrc | |
npm ci | |
- name: Publish to Chromatic | |
uses: chromaui/action@latest | |
with: | |
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
autoAcceptChanges: "main" # 👈 Option to accept all changes on main | |
exitOnceUploaded: true | |
skip: "@(renovate/**|dependabot/**)" # 👈 Option to skip Chromatic for certain branches | |
zip: true |