Skip to content

Commit

Permalink
Merge pull request #4 from emulsify-ds/add-storybook-deploy
Browse files Browse the repository at this point in the history
Add storybook deploy
  • Loading branch information
cienvaras authored Dec 14, 2023
2 parents 4141503 + 66cd09b commit 3137548
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Build and Publish storybook to GitHub Pages'

on:
push:
branches:
- 'main'

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- id: build-publish
uses: bitovi/[email protected]
with:
path: 'storybook-static'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Storybook
storybook-static
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ npm run develop
This version only supports developing and previewing the components within Storybook. Support for building components for use in Drupal or frontend frameworks
will be added later.

[View the deployed storybook instance](https://emulsify-ds.github.io/emulsify-web-components/)

## Connecting components with Figma

First, get your own copy of the [Emulsify UI kit](https://www.figma.com/community/file/1141071510618977331) from the Figma community.
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"build": "npm run clean && tsc && find src/components -name '*.ts' -not -name '*.stories.ts' -exec npx vite build -- {} \\;",
"watch-typescript": "tsc --watch",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:deploy": "storybook-to-ghpages -o .out",
"build-storybook": "storybook build",
"style-dictionary:build": "node ./src/tokens/tokensTransform.js",
"tokens:transform": "token-transformer ./src/tokens/figma.tokens.json ./src/tokens/transformed.tokens.json",
"tokens:build": "npm run tokens:transform && npm run style-dictionary:build"
Expand Down

0 comments on commit 3137548

Please sign in to comment.