Skip to content

Commit

Permalink
feat: deploy storybook-static
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Mar 21, 2024
1 parent 7451f16 commit 6c9f866
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage/
dist/
storybook-static/
__snapshots__/
10 changes: 9 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ jobs:
- name: Build
run: npm run build --if-present

- name: Fix imports
run: |
[ -d "stories" ] && sed -i 's/..\/src/..\/dist/g' stories/*.stories.js || true
[ -d "demo" ] && sed -i 's/..\/src/..\/dist/g' demo/*.js || true
- name: Build storybook
run: npm run storybook:build

- uses: rossjrw/pr-preview-action@v1
with:
source-dir: .
source-dir: ./storybook-static
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ coverage/
.eslintcache
.DS_Store
dist/
storybook-static/
2 changes: 1 addition & 1 deletion stories/cosmoz-autocomplete.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html } from 'lit-html';
import '../src/autocomplete/';
import '../src/autocomplete/index.ts';
import { colors } from './data';

export default {
Expand Down

0 comments on commit 6c9f866

Please sign in to comment.