Skip to content

Commit

Permalink
fix: make the storybook github workflow work
Browse files Browse the repository at this point in the history
  • Loading branch information
florianstancioiu committed Apr 5, 2024
1 parent c9fe314 commit b971cb8
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
---
name: Storybook CD
name: Storybook
on:
push:
branches:
- master
jobs:
storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 19
cache: 'npm'

- name: Install
run: npm ci

- name: Install
run: npm run build

- name: Fix import
run: sed -i 's/..\/src/..\/dist/g' stories/*.stories.js

- name: Deploy storybook
run: npm run storybook:deploy -- --ci
env:
GH_TOKEN: Neovici:${{ secrets.GITHUB_TOKEN }}
uses: Neovici/cfg/.github/workflows/story.yml@master
secrets: inherit

0 comments on commit b971cb8

Please # to comment.