Skip to content

Commit

Permalink
ci: Fix storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
maicol07 committed Apr 28, 2022
1 parent 012dd0c commit 64a8fb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
cache: ${{ !env.ACT && 'pnpm' || '' }}
- name: Install dependencies
run: pnpm install
#👇 Adds Chromatic as a step in the workflow
- name: Build styling
run: pnpm run build:styling
- name: Create custom elements manifest
run: pnpm custom-elements-manifest
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken,
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"powerwash": "pnpm powerwash:ts & pnpm powerwash:styling && rm -rf node_modules",
"watch": "pnpm build && node scripts/watcher.js",
"storybook": "start-storybook -p 6006",
"build-storybook": "pnpm custom-elements-manifest && pnpm build:styling && build-storybook",
"build-storybook": "build-storybook",
"custom-elements-manifest": "cem analyze --litelement --globs \"packages/*/*.ts\""
},
"devDependencies": {
Expand Down

0 comments on commit 64a8fb7

Please sign in to comment.