fix: add leaf node functionality to tree list item #496
Workflow file for this run
This file contains hidden or 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
| # .github/workflows/chromatic.yml | |
| # Workflow name | |
| name: 'Chromatic' | |
| # Event for the workflow | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'libs/components/**' | |
| - 'libs/icons/**' | |
| - 'libs/tokens/**' | |
| # List of jobs | |
| jobs: | |
| chromatic-deployment: | |
| # Operating System | |
| runs-on: ubuntu-latest | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| # Job steps | |
| steps: | |
| # 👇 Version 2 of the action | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # 👈 Required to retrieve git history | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm install -g pnpm # Or use corepack enable && pnpm install | |
| - run: npm ci | |
| # 👇 Adds Chromatic as a step in the workflow | |
| - run: npx chromatic --project-token=${{ secrets.CHROMATIC_PROJECT_TOKEN }} --exit-once-uploaded --auto-accept-changes |