Skip to content

Commit

Permalink
WIP storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
eikhr committed May 12, 2024
1 parent a840372 commit ca0513a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-lego-bricks-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Publish lego-bricks Storybook to GitHub Pages

on:
pull_request:

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

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '22.x'

- uses: bitovi/[email protected]
with:
install_command: yarn workspace @webkom/lego-bricks install
build_command: yarn workspace @webkom/lego-bricks build:storybook
path: packages/lego-bricks/storybook-static
checkout: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tiny-lr.pid
coverage
dist
dist-client
storybook-static
.env
styleguide
.css.tmp.md
Expand Down
1 change: 0 additions & 1 deletion packages/lego-bricks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"storybook": "^8.0.10",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^1.6.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@webkom/lego-bricks';
import { Button } from '../Button';
import { ConfirmModal } from '.';
import type { Meta, StoryObj } from '@storybook/react';

Expand Down
8 changes: 1 addition & 7 deletions packages/lego-bricks/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { resolve } from 'path';
import react from '@vitejs/plugin-react';
import eslint from 'vite-plugin-eslint';
import { defineConfig } from 'vitest/config';

export default defineConfig({
Expand All @@ -23,10 +22,5 @@ export default defineConfig({
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
},
plugins: [
react(),
eslint({
exclude: [/virtual:/, /node_modules/, /dist/],
}),
],
plugins: [react()],
});

0 comments on commit ca0513a

Please sign in to comment.