Skip to content

Commit

Permalink
Add Storybook to store components (#1012)
Browse files Browse the repository at this point in the history
And move icons to ui folder
  • Loading branch information
almsh authored Jan 23, 2025
1 parent ae54aec commit 2b387bd
Show file tree
Hide file tree
Showing 47 changed files with 5,076 additions and 531 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy Storybook to GitHub Pages

on:
push:
branches:
- main # Or your default branch name

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Read .nvmrc
id: nvm
run: echo "NVMRC=$(cat '.nvmrc')" >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
cache: "npm"

- name: Install Dependencies
run: npm ci

- name: Build Storybook
run: npm run ui:build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ui/storybook-static

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading

0 comments on commit 2b387bd

Please sign in to comment.