Skip to content

github action in chapter "Review" #1

github action in chapter "Review"

github action in chapter "Review" #1

Workflow file for this run

# Name of our action
name: 'Chromatic'
# The event that will trigger the action
on: push
# What the action will do
jobs:
test:
# The operating system it will run on
runs-on: ubuntu-latest
# The list of steps that the action will go through
steps:
- uses: actions/checkout@v4
with:
#πŸ‘‡ Fetches all history so Chromatic can compare against previous builds
fetch-depth: 0
- uses: actions/setup-node@v4
with:
#πŸ‘‡ Sets the version of Node.js to use
node-version: 20
- run: yarn
#πŸ‘‡ Adds Chromatic as a step in the workflow
- uses: chromaui/action@latest
# Options required for Chromatic's GitHub Action
with:
#πŸ‘‡ Chromatic projectToken, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/review/ to obtain it
projectToken: chpt_7dba59b25a08f16
token: ${{ secrets.GITHUB_TOKEN }}