feat(foundation-styled-component): export styleSheetManager #1347
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened, synchronize] | |
paths: | |
- packages/bezier-react/** | |
jobs: | |
chromatic-deployment: | |
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' | |
name: Chromatic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Yarn cache path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.1 | |
- name: Load Yarn cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install Dependencies | |
run: yarn | |
- name: Build Packages | |
run: yarn build --filter=bezier-icons | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
id: chromatic | |
with: | |
workingDir: packages/bezier-react | |
exitZeroOnChanges: true | |
skip: dependabot/** | |
projectToken: 06157a6fbe6f | |
- name: Save PR number and Chromatic build outputs | |
run: | | |
mkdir -p ./pr | |
echo "${{ github.event.pull_request.number }}" > ./pr/prNumber | |
echo "${{ steps.chromatic.outputs.storybookUrl }}" > ./pr/storybookUrl | |
echo "${{ steps.chromatic.outputs.buildUrl }}" > ./pr/buildUrl | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pr | |
path: pr/ |