Skip to content

Commit

Permalink
fix: change Chromatic action to build current branch, not base branch (
Browse files Browse the repository at this point in the history
  • Loading branch information
Samathingamajig authored and doprz committed Mar 6, 2024
1 parent 35fab34 commit e73c9fe
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: "Chromatic"
name: 'Chromatic'

on: [push, pull_request_target]
on: [push, pull_request]

jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
autoAcceptChanges: "main"
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
autoAcceptChanges: 'main'

0 comments on commit e73c9fe

Please sign in to comment.