-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setting cicd pipeline on chromatic deploy
- Loading branch information
Showing
3 changed files
with
539 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Chromatic Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "client/**" | ||
|
||
jobs: | ||
chromatic-deployment: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: client | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build Storybook | ||
run: yarn run build-storybook | ||
|
||
- name: Run Chromatic | ||
uses: chromaui/action@v1 | ||
with: | ||
working-directory: client | ||
projectToken: ${{ secrets.STORYBOOK_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.