Skip to content

Merge pull request #925 from chromaui/dependabot/npm_and_yarn/ip-2.0.1 #468

Merge pull request #925 from chromaui/dependabot/npm_and_yarn/ip-2.0.1

Merge pull request #925 from chromaui/dependabot/npm_and_yarn/ip-2.0.1 #468

name: Chromatic Main and Active PRs only
on:
push:
branches:
- main
pull_request:
types: [assigned, ready_for_review, review_requested]
permissions:
contents: read
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: install
run: yarn install --frozen-lockfile
- uses: chromaui/action@latest
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
onlyChanged: true
traceChanged: true
diagnostics: true
skip: ${{ github.event.pull_request.draft == true }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: chromatic-build-artifacts-${{ github.run_id }}
path: |
chromatic-diagnostics.json
**/build-storybook.log