Skip to content

Commit

Permalink
Merge branch 'v2' into neen/feat/input-component
Browse files Browse the repository at this point in the history
  • Loading branch information
patthapolkit committed Dec 13, 2024
2 parents dd21620 + 3690096 commit 06dc2ca
Show file tree
Hide file tree
Showing 117 changed files with 6,572 additions and 8,459 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/storybook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy Storybook

on:
push:
branches:
- v2
paths:
- 'apps/storybook/**'
- 'packages/ui/**'

jobs:
storybook:
name: Storybook
runs-on: ubuntu-latest

permissions:
contents: read
deployments: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup node with cache
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build project
run: pnpm turbo run --filter=@app/storybook build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
# Using @leomotors's API token
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: cugetreg-storybook
directory: apps/storybook/storybook-static
branch: main
8 changes: 4 additions & 4 deletions apps/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"dependencies": {
"@cugetreg/database": "workspace:*",
"dotenv-cli": "^7.4.2",
"drizzle-orm": "^0.33.0",
"postgres": "^3.4.4",
"tsx": "^4.19.0"
"drizzle-orm": "^0.34.1",
"postgres": "^3.4.5",
"tsx": "^4.19.2"
},
"devDependencies": {
"typescript": "^5.5.4"
"typescript": "^5.6.3"
}
}
4 changes: 2 additions & 2 deletions apps/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const config: StorybookConfig = {
stories: [
'../src/**/*.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx|svelte)',
'../../../packages/ui/src/**/*.stories.@(js|jsx|ts|tsx|svelte)',
'../../../packages/ui/src/components/**/*.stories.@(js|jsx|ts|tsx|svelte)',
],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-a11y'),
'@storybook/addon-svelte-csf',
],
framework: {
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './tailwind.scss'
import '@repo/ui/css'

import { withThemeByClassName } from '@storybook/addon-themes'
import type { Preview } from '@storybook/svelte'
Expand Down
302 changes: 0 additions & 302 deletions apps/storybook/.storybook/tailwind.scss

This file was deleted.

4 changes: 4 additions & 0 deletions apps/storybook/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Storybook

This application is deployed at https://storybook.cugetreg.com (Cloudflare Pages)

GitHub Action is set to deploy the application everytime `apps/storybook` or `packages/ui` changes.
Loading

0 comments on commit 06dc2ca

Please sign in to comment.