Skip to content

Icons: add thumbs up down icons (#566) #1190

Icons: add thumbs up down icons (#566)

Icons: add thumbs up down icons (#566) #1190

Workflow file for this run

name: Chromatic
on:
push:
paths:
- 'packages/pharos/**'
- '.storybook/**'
- 'yarn.lock'
- 'package.json'
- '.github/workflows/chromatic.yml'
branches-ignore:
- main
jobs:
chromatic:
name: Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.YARN_CACHE_DIR }}
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn --prefer-offline --frozen-lockfile
- name: Setup Storybook
run: yarn storybook:setup
- name: Build Storybook
run: yarn build-storybook:wc
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: .storybook-static/wc
exitZeroOnChanges: true
exitOnceUploaded: true