Skip to content

Commit a30f66f

Browse files
authored
shorter storybook workflow
1 parent 38b9718 commit a30f66f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/storybook.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Build and Deploy
2-
on: [push]
2+
on:
3+
push:
4+
branches: [ main ]
35
jobs:
46
build-and-deploy:
57
runs-on: ubuntu-latest
@@ -11,7 +13,8 @@ jobs:
1113
- name: Install and Build 🔧
1214
run: |
1315
npm install
14-
npm run generate
16+
npm run fetch
17+
npm run icon
1518
npm run storybook
1619
npm run build-storybook
1720
- name: Deploy 🚀
@@ -21,4 +24,4 @@ jobs:
2124
BRANCH: main # The branch the action should deploy to.
2225
FOLDER: docs-build # The folder that the build-storybook script generates files.
2326
CLEAN: true # Automatically remove deleted files from the deploy branch
24-
TARGET_FOLDER: docs # The folder that we serve our Storybook files from
27+
TARGET_FOLDER: docs # The folder that we serve our Storybook files from

0 commit comments

Comments
 (0)