Merge pull request #3548 from LiteFarmOrg/LF-4546-Implement-Reusable-… #1631
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- integration | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/webapp | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Install dependencies | |
run: pnpm install | |
- name: Publish to Chromatic | |
env: | |
NODE_OPTIONS: "--max-old-space-size=8192" | |
run: ./node_modules/.bin/chromatic --project-token ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |