Draft PR for CI test #2517
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 | |
- alpha | |
pull_request: | |
paths: | |
- packages/bezier-react/** | |
jobs: | |
chromatic-deployment: | |
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' | |
name: Chromatic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Restore cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
**/.turbo | |
node_modules/.cache/turbo | |
key: ${{ runner.os }}-chromatic-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-chromatic- | |
- name: Install dependencies | |
run: yarn | |
- name: Build bezier-react's dependencies | |
run: yarn build [email protected]/bezier-react^... | |
- name: Publish to Chromatic | |
uses: chromaui/action@v11 | |
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@v4 | |
with: | |
name: pr | |
path: pr/ |