File tree Expand file tree Collapse file tree 2 files changed +18
-32
lines changed
Expand file tree Collapse file tree 2 files changed +18
-32
lines changed Original file line number Diff line number Diff line change 1010 build :
1111 runs-on : ubuntu-latest
1212
13+ env :
14+ CHROMATIC_BRANCH : ${{ github.event.pull_request.head.ref || github.ref_name }}
15+ CHROMATIC_SHA : ${{ github.event.pull_request.head.sha || github.ref }}
16+ CHROMATIC_SLUG : ${{ github.repository }}
17+
1318 steps :
1419 - name : Checkout
1520 uses : actions/checkout@v5
21+ with :
22+ fetch-depth : 0
1623
1724 - name : Enable corepack
1825 run : corepack enable
3744
3845 - name : Storybook build
3946 run : yarn build-storybook
47+
48+ - name : Switch to PR branch SHA
49+ if : ${{ github.event.pull_request.head.ref }}
50+ run : git switch --detach ${{ github.event.pull_request.head.ref }}
51+
52+ - name : Storybook deploy
53+ uses : chromaui/action@v11
54+ with :
55+ autoAcceptChanges : main
56+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
57+ token : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments