Skip to content

Commit

Permalink
fix(preview): allow skipping import fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Jun 4, 2024
1 parent 6934e67 commit 144093f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Preview

on:
workflow_call:
skip_dist:
description: 'True to skip the import fixing'
type: boolean

jobs:
deploy-preview:
Expand All @@ -25,6 +28,7 @@ jobs:
run: npm run build --if-present

- name: Fix imports
if: ${{ !inputs.skip_dist }}
run: |
[ -d "stories" ] && sed -i 's/..\/src/..\/dist/g' stories/*.stories.js || true
[ -d "demo" ] && sed -i 's/..\/src/..\/dist/g' demo/*.js || true
Expand Down

0 comments on commit 144093f

Please # to comment.