Skip to content

Commit

Permalink
simplify, add storybook to action
Browse files Browse the repository at this point in the history
  • Loading branch information
gkindel committed Oct 21, 2024
1 parent bfc8b95 commit 5e91306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
node-version: 20
- name: Installing node modules
run: npm ci
- name: Deploy with gh-pages
- name: Predeploy build
run: npm run predeploy
- name: Storybook build
run: npm run predeploy
- run: echo git remote set-url origin https://git:[email protected]/${GITHUB_REPOSITORY}.git
- name: Deploy to gh-pages
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "eslint .",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"build-storybook": "storybook build -o ./dist/storybook",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
Expand Down

0 comments on commit 5e91306

Please sign in to comment.