Skip to content

Commit

Permalink
Update Storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Mar 26, 2024
1 parent b09a5e0 commit f0d6c26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "*.json"
- "*.yaml"
- "packages/**"
- ".github/workflows/storybook.yml"

jobs:
build-and-deploy:
Expand Down Expand Up @@ -45,13 +46,11 @@ jobs:

- name: Generate Storybook
run: |
mkdir -p .storybook
chmod -R 777 .storybook
make storybook-build
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
branch: gh-pages
folder: .storybook
folder: .storybook-build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*~
acceptance/cypress/videos/
acceptance/node_modules
.storybook-build
build
core
node_modules
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ storybook-start: ## Storybook: Start server on port 6006

.PHONY: storybook-build
storybook-build: ## Storybook: Build
@echo "$(GREEN)==> Start Storybook$(RESET)"
pnpm run build-storybook

@echo "$(GREEN)==> Build Storybook$(RESET)"
mkdir -p $(CURRENT_DIR)/.storybook-build
pnpm run build-storybook -o $(CURRENT_DIR)/.storybook-build

## Acceptance
.PHONY: start-test-acceptance-frontend-dev
Expand Down

0 comments on commit f0d6c26

Please sign in to comment.