Skip to content

Commit

Permalink
fix: chromatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Jun 21, 2024
1 parent 57c4481 commit 7b68825
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,36 @@ on:
- project/storybook

jobs:
chromatic:
ui:
name: UI library
environment: 'test'
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/go-ui-storybook
working-directory: packages/ui
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies on UI library
run: yarn install --frozen-lockfile
- name: Typecheck
run: yarn typecheck
- name: Lint CSS
run: yarn lint:css
- name: Lint JS
run: yarn lint:js
- name: build UI library
run: yarn build
- uses: actions/upload-artifact@v4
with:
name: ui-build
path: packages/ui/dist
chromatic:
runs-on: ubuntu-latest
needs: [ui]
steps:
- uses: actions/checkout@v4
with:
Expand Down
3 changes: 1 addition & 2 deletions packages/go-ui-storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import '@ifrc-go/ui/index.css';
import type { Preview } from "@storybook/react";

import '@ifrc-go/ui/index.css';
import '../src/stories/index.css';

const preview: Preview = {
Expand Down

0 comments on commit 7b68825

Please sign in to comment.