Add Headers (Person, Company and Resource) #1608
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
name: "Chromatic" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
PUBLIC_BUILD: true | |
concurrency: | |
group: | |
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
chromatic: | |
permissions: write-all | |
name: Run Chromatic | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "21.x" | |
cache: npm | |
- run: npm ci | |
- name: Run Chromatic | |
id: chromatic | |
uses: chromaui/action@latest | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
autoAcceptChanges: "main" | |
exitOnceUploaded: true | |
- name: Publish Storybook Link in the comments | |
if: github.event_name == 'pull_request' | |
uses: dannyhw/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
review-url: ${{ steps.chromatic.outputs.url }} | |
build-url: ${{ steps.chromatic.outputs.buildUrl }} | |
storybook-url: ${{ steps.chromatic.outputs.storybookUrl }} |