Skip to content

Commit b4ce8b3

Browse files
authored
Merge pull request #70 from code-hike/storybook-action
Add Chromatic
2 parents 28d3a62 + 66d4a5d commit b4ce8b3

File tree

4 files changed

+5061
-38
lines changed

4 files changed

+5061
-38
lines changed

.github/workflows/release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
1010
steps:
1111
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 10 # 👈 Required to retrieve git history
1214

1315
- name: Prepare repository
1416
run: git fetch --unshallow --tags
@@ -34,3 +36,9 @@ jobs:
3436
yarn install --frozen-lockfile 2>&1 | grep -v '^[warning|info]'
3537
yarn build
3638
yarn release
39+
- name: Publish to Chromatic
40+
uses: chromaui/action@v1
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
44+
workingDir: packages/storybook

0 commit comments

Comments
 (0)