Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP #415

Draft
wants to merge 862 commits into
base: main
Choose a base branch
from
Draft

WIP #415

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
862 commits
Select commit Hold shift + click to select a range
1cf81f2
fix: select box group width
malangcat Jan 3, 2025
0dfcfd0
test: fix ControlChip condition mapping
malangcat Jan 3, 2025
3b77444
refactor: remove duplicate exports
malangcat Jan 3, 2025
cf8f738
refactor: remove unused exports
malangcat Jan 3, 2025
14afaaa
fix: unlisted devDependencies
malangcat Jan 3, 2025
bed9826
chore: configure knip
malangcat Jan 3, 2025
e465787
build: update headless tsconfig to use react-jsx for JSX transformation
malangcat Jan 3, 2025
f967eb6
fix: lockfile
malangcat Jan 3, 2025
1d50ded
fix: useCheckbox default role
malangcat Jan 3, 2025
d269640
feat: indeterminate checkbox
malangcat Jan 3, 2025
a518d67
test: fix react-headless-test.yml build dependencies
malangcat Jan 3, 2025
f39d522
fix: lockfile
malangcat Jan 3, 2025
c97ab18
feat: update registry
malangcat Jan 3, 2025
9cdc8f3
feat: rewrite text field
malangcat Jan 4, 2025
ce1a39b
fix: textarea auto resizing
malangcat Jan 4, 2025
563b954
fix: lockfile
malangcat Jan 4, 2025
13c7359
docs: update docs README.md
malangcat Jan 4, 2025
7ed4f5b
docs: re-generate
malangcat Jan 4, 2025
485d73a
feat: update skeleton variants
malangcat Jan 4, 2025
14bc878
refactor: use mergeProps in toggle
malangcat Jan 4, 2025
ac8a74e
fix: text field snapshot test failures
malangcat Jan 4, 2025
d8726e9
test: add hasValue condition to TextField stories
malangcat Jan 4, 2025
bfe9b13
fix: className prop passing in button components
malangcat Jan 4, 2025
f695e3b
docs: update typography docs
malangcat Jan 4, 2025
654491c
feat: update fab design
malangcat Jan 4, 2025
9843e61
fix: chip snippet layout default
malangcat Jan 4, 2025
2829098
chore: remove resolved todos
malangcat Jan 4, 2025
1c0cb2e
feat: VisuallyHidden component
malangcat Jan 4, 2025
d827de5
refactor: remove unused code
malangcat Jan 5, 2025
1949c02
chore: config biome to ignore build outputs
malangcat Jan 5, 2025
ffa1ad5
fix: prevent capturing callback
malangcat Jan 5, 2025
f4d7f9c
docs: add readme
malangcat Jan 5, 2025
29acb5d
fix: remove console logging from `useSegmentedControl`
te6-in Jan 6, 2025
f1322d6
feat: HelpBubble styled layer
malangcat Jan 6, 2025
6bd47d7
refactor: headless hook return conventions
malangcat Jan 6, 2025
6480165
docs: help bubble type table
malangcat Jan 6, 2025
251bdd4
docs: add help bubble anchor example
malangcat Jan 6, 2025
0cf2834
feat: GA
junghyeonsu Jan 7, 2025
22a13b9
refactor: Inline Banner & Callout styled 레이어 추가, 인터페이스 수정, React 문서 정…
te6-in Jan 7, 2025
814bd4e
feat: Text Button 레시피에 cursor 속성 추가 (#503)
te6-in Jan 8, 2025
1746e92
feat: Select Box 디자인 변경사항 반영
te6-in Jan 8, 2025
901c83a
style: format exports
malangcat Jan 8, 2025
ea86440
build: add path triggers
malangcat Jan 8, 2025
5b922d3
refactor: qvism-preset file structure
malangcat Jan 8, 2025
87598ba
docs: README.md
malangcat Jan 8, 2025
8882233
fix: Text Field indicator 중복 제거, headless 테스트 수정
te6-in Jan 8, 2025
6e63380
refactor: remove unused
malangcat Jan 8, 2025
806e84d
feat(docs): last modified time
malangcat Jan 8, 2025
fd80b43
fix: revert example RefObject type changes
malangcat Jan 8, 2025
41ba82e
fix: prevent invalid padding after nanocss compression
malangcat Jan 8, 2025
ca60773
feat: better dom utils typing
malangcat Jan 8, 2025
418e676
feat: decompose ProgressCircle and revise composing pattern
malangcat Jan 8, 2025
955ca99
fix: stackflow-spa example
malangcat Jan 8, 2025
084f3ca
refactor: make `useDismissible` private & export `DismissibleRoot` an…
te6-in Jan 9, 2025
1a9ca8d
refactor: Segmented Control styled 레이어 추가 및 리팩토링 (#504)
te6-in Jan 9, 2025
7b5e5ca
refactor: memoize the function calculating graphemes
te6-in Jan 9, 2025
732bcec
refactor: use mergeProps pattern in avatar
malangcat Jan 9, 2025
dc1b9a2
feat: implement headless snackbar
malangcat Jan 9, 2025
0b8f562
feat: implement styled snackbar
malangcat Jan 9, 2025
ed42631
feat: snackbar snippet and docs
malangcat Jan 9, 2025
77b300a
docs: re-generate
malangcat Jan 9, 2025
bbdcc71
fix: snackbar recipe not applied
malangcat Jan 9, 2025
507f0bd
docs: re-generate
malangcat Jan 9, 2025
0ac23fd
feat: allow optional snackbar action
malangcat Jan 9, 2025
6c202ec
fix: missing deps
malangcat Jan 9, 2025
c5e1f4f
fix: missing deps
malangcat Jan 9, 2025
8a0a9d7
docs: Color & Typography 맵핑 문서를 추가해요 (#505)
te6-in Jan 10, 2025
4dd12af
docs: add links to v2
te6-in Jan 10, 2025
ac25c27
refactor: Segmented Control 스펙에서 indicator 제거, segment로 분리
te6-in Jan 10, 2025
89f597a
docs: 디자인 문서 추가, broken link 수정 & 단락 제목 통일
te6-in Jan 10, 2025
88a53f0
docs: Text Field 중복 예시 제거
te6-in Jan 10, 2025
ad31322
fix: move accessibility warning from `SelectBoxRadio` to `SelectBoxRa…
te6-in Jan 10, 2025
d3182f7
docs: add examples, fix imports in stories
te6-in Jan 11, 2025
04b237e
chore: generate examples
te6-in Jan 11, 2025
e23db54
feat: more layout utilities
malangcat Jan 12, 2025
21c4a8c
refactor: remove non-working rem helper
malangcat Jan 12, 2025
5fc4854
style: ImageWithTextPreview gap
junghyeonsu Jan 13, 2025
a1f51bc
feat: 아이콘 문서 추가
junghyeonsu Jan 13, 2025
aed9cab
feat: 아이콘 문서 제목 변경
junghyeonsu Jan 13, 2025
7bf0186
style: sanity content style
junghyeonsu Jan 13, 2025
b884f84
feat(sanity): description block 추가
junghyeonsu Jan 13, 2025
6d06c0e
feat: update color tokens
malangcat Jan 13, 2025
fbf5f15
feat: image-text-halg, 아이콘 페이지 description 추가
junghyeonsu Jan 13, 2025
66b8113
feat: update checkbox design
malangcat Jan 13, 2025
b38a4d3
fix: badge dark mode color
malangcat Jan 13, 2025
baf3dd7
fix: checkbox size example
malangcat Jan 13, 2025
89fb8be
docs: 스트로크 문서 제거
te6-in Jan 13, 2025
d82c511
feat: update codegen icon data
te6-in Jan 13, 2025
47cc6e7
feat: callout codegen
te6-in Jan 13, 2025
e3d4745
docs: Checkbox size="small" 예제에서 제거
te6-in Jan 13, 2025
87d240e
feat: update color token naming
malangcat Jan 13, 2025
12971d1
feat: support codegen for Action Chips
te6-in Jan 13, 2025
694810d
feat: support codegen for Control Chips
te6-in Jan 13, 2025
7820df2
feat: support codegen for Action Button, Avatar, Badge, Callout, Chec…
te6-in Jan 14, 2025
4d1855b
fix: escape strings with line breaks & append comments to elements wi…
te6-in Jan 14, 2025
ee15a4a
feat: support codegen for Avatar Stack, Help Bubble
te6-in Jan 14, 2025
ca65c80
feat: support codegen for Inline Banner, Progress Circle, Reaction Bu…
te6-in Jan 14, 2025
24c3902
fix: Reaction Button에서 count prop 제공하지 않는 경우 슬롯 렌더링하지 않음
te6-in Jan 14, 2025
7c02c4c
docs: Segmented Control 문서 오류 수정
te6-in Jan 14, 2025
4cfd148
feat: Expose Variables 개선 (combination 제외 옵션 추가, 프레임 디자인 수정)
te6-in Jan 14, 2025
ced78e0
feat: update color token
malangcat Jan 14, 2025
1743ee3
refactor: sort color tokens
malangcat Jan 14, 2025
c8b053f
fix: badge stroke color
malangcat Jan 14, 2025
64df09d
fix: RadioGroup typing, controlled prop
malangcat Jan 15, 2025
bb96a69
refactor: group component compose pattern
malangcat Jan 15, 2025
50a05b1
feat(expose-variables): palette 토큰에서 중복되는 정보 제거
te6-in Jan 14, 2025
14480a6
chore: up @figma/plugin-typings
te6-in Jan 15, 2025
03b1f15
feat(figma-codegen): Text, 아이콘, Select Box, Skeleton, Snackbar 핸들링
te6-in Jan 15, 2025
28093a2
feat(figma-codegen): generate property `color` for `Text` component
te6-in Jan 15, 2025
c89c84b
refactor: unit -> dimension
malangcat Jan 15, 2025
2122a22
fix: Box typing
malangcat Jan 15, 2025
20852db
fix: wrong unit imports
malangcat Jan 15, 2025
22a15b0
feat(figma-codegen): Figma에서 프로퍼티 이름 수정, support Text Button
te6-in Jan 15, 2025
ac1624e
feat: Figma 프로퍼티 정리 반영
te6-in Jan 15, 2025
11dee48
feat(figma-codegen): support codegen for Toggle Button
te6-in Jan 15, 2025
bf1705b
fix: dimension tokens filename
malangcat Jan 16, 2025
37e419c
fix: dimension box props typing
malangcat Jan 16, 2025
92f50ea
feat: 프로퍼티 수정사항 반영
te6-in Jan 16, 2025
dcc639f
feat(figma-expose-variables): link to docs, hex 변환 시 @create-figma-pl…
te6-in Jan 16, 2025
1aff2ed
fix: comment 이전 공백 제거, Text 줄바꿈 핸들
te6-in Jan 16, 2025
dfd4466
refactor: Badge variant `outlined` → `outline`
te6-in Jan 16, 2025
72b94e3
feat(figma-codegen): support codgen for TextFieldInput, TextFieldText…
te6-in Jan 16, 2025
25ee913
feat: do / don't 컴포넌트, Number 리스트 추가
junghyeonsu Jan 16, 2025
3aa7bcf
chore: sync comment to code
malangcat Jan 16, 2025
d7e1f2a
fix: stackflow example
malangcat Jan 16, 2025
b42abc9
fix: remove ref passing in `withRootProvider`
malangcat Jan 16, 2025
8c8a112
feat: upgrade radix dependencies
malangcat Jan 16, 2025
2492a41
feat: re-write dialog without stackflow
malangcat Jan 16, 2025
03ae288
style(docs): change image 여백 및 둥글기
junghyeonsu Jan 17, 2025
089d7e0
feat: doDont 타입 설정
junghyeonsu Jan 17, 2025
9d40e0c
feat: remove PascalCase
junghyeonsu Jan 17, 2025
39b168d
feat(figma-codegen): support codegen for Tabs & Chip Tabs
te6-in Jan 17, 2025
1f88f5f
feat: 아이콘 Library page
junghyeonsu Jan 17, 2025
346b2a0
chore(docs): TBD 문구 정리
junghyeonsu Jan 17, 2025
39dd6d1
feat: suspense in icons
junghyeonsu Jan 17, 2025
d63700b
feat(figma-codgen): Select Box Group 생성 시 Stack 레이어 추가
te6-in Jan 17, 2025
d30c630
docs: 문서 heading 수정
te6-in Jan 17, 2025
e7394ce
fix(figma-codegen): fix handling size properties
te6-in Jan 17, 2025
365fd73
feat(figma-codegen): update component keys to exclude from codegen
te6-in Jan 17, 2025
487ddae
feat: codegen layout change to camelCase
junghyeonsu Jan 17, 2025
ecac5a3
docs: Colors scale 맵핑 업데이트
te6-in Jan 17, 2025
ca7aea9
feat: do-dont title
junghyeonsu Jan 17, 2025
da39b9d
fix: Box
malangcat Jan 19, 2025
8e3f0ea
docs: add missing key
te6-in Jan 17, 2025
3f09c07
fix(figma-codgen): handle line breaks
te6-in Jan 17, 2025
da7c1a7
feat(figma-codegen): handle icons
te6-in Jan 17, 2025
7310071
fix: add missing foreground color to Action Chip
te6-in Jan 19, 2025
42c4dac
test(rootage): fix test snapshot
malangcat Jan 19, 2025
ff506c2
feat(rootage): support nested group generate
malangcat Jan 19, 2025
489facc
fix: vars export path
malangcat Jan 19, 2025
203e2ee
feat: rewrite sheets
malangcat Jan 19, 2025
ea8eb92
feat: bundle component css
malangcat Jan 19, 2025
9e94a4f
feat: cleanup stackflow dialog pattern
malangcat Jan 19, 2025
d72e920
fix(rootage-core): fix invalid schema description being generated for…
te6-in Jan 20, 2025
1f0da62
docs: add stylesheet to stories
te6-in Jan 20, 2025
007e8ed
fix: fix checkbox control radius & checkbox icon being clipped on Safari
te6-in Jan 20, 2025
6bb0bdb
fix: remove default inline padding (Safari) from TextFieldTextarea
te6-in Jan 20, 2025
2239a07
feat(figma-codegen): Text generate 시 불필요한 comment 제거
te6-in Jan 20, 2025
c429e7d
chore: generate registries
te6-in Jan 20, 2025
9e7563c
docs: Action Chip description 수정
te6-in Jan 20, 2025
6845f6a
feat: add Columns, Inline, Stack to registry
te6-in Jan 20, 2025
58e9d5c
docs: Layout 컴포넌트 문서 개선
te6-in Jan 20, 2025
528f43d
feat: getCurrentPageComponentSetDefinition
junghyeonsu Jan 20, 2025
8d92132
Merge branch 'wip' of https://github.com/daangn/seed-design into wip
junghyeonsu Jan 20, 2025
88ce216
docs: example
te6-in Jan 20, 2025
4ac2fa4
fix: fix callout dismiss button margin being duplicated
te6-in Jan 20, 2025
e0aa073
fix: add missing `font: inherit;` for buttons
te6-in Jan 20, 2025
b6bf595
docs: frontmatter description 정리
te6-in Jan 20, 2025
5f5ac2c
chore: update example
malangcat Jan 20, 2025
a329a60
test: update ActionButton chromatic
malangcat Jan 20, 2025
a33d3b5
feat: add label slot in switch, remove small radio
malangcat Jan 20, 2025
80b6e0d
test: ignore values from variantMap if conditionMap has same key
malangcat Jan 20, 2025
db33b4b
fix: switch label align
malangcat Jan 20, 2025
f6df3d1
docs: update switch example
malangcat Jan 20, 2025
f345de1
feat: support align on <Text>
malangcat Jan 20, 2025
6e81d62
feat: add error state snippet
malangcat Jan 20, 2025
21c251b
docs: error statement examples
malangcat Jan 20, 2025
aec010c
feat: add token `$dimension.spacing-y.between-select-boxes`
te6-in Jan 21, 2025
7486a0e
feat(figma-codegen): support codegen for Switch
te6-in Jan 21, 2025
42931a8
fix: action sheet design
malangcat Jan 21, 2025
a5c0514
chore: add ErrorState example
malangcat Jan 21, 2025
4674031
chore: fix example
malangcat Jan 21, 2025
3ec0e1a
fix: action sheet description slot
malangcat Jan 21, 2025
e770416
fix: action sheet header gap
malangcat Jan 21, 2025
1a9d543
fix: badge color
malangcat Jan 21, 2025
886e1bc
fix: error state layout
malangcat Jan 21, 2025
bf2362d
fix: error state font size
malangcat Jan 21, 2025
aa688b4
fix: text override priority
malangcat Jan 21, 2025
2915746
feat: rename typography.type to typography.textStyle
malangcat Jan 21, 2025
6e65df5
fix: docs typing
malangcat Jan 21, 2025
a546b86
fix: action sheet divider styling
malangcat Jan 21, 2025
702df41
feat: update ErrorState design
malangcat Jan 21, 2025
1738c73
fix: action sheet divider width
malangcat Jan 21, 2025
bcf92f2
docs: separate Action Button stories
te6-in Jan 21, 2025
0eaad7a
feat: update line height tokens
malangcat Jan 21, 2025
052c33f
fix: use box-shadow for stroke to prevent unexpected layout change
malangcat Jan 21, 2025
a04e07d
feat: update green colors
malangcat Jan 21, 2025
cb33873
fix: text button border
malangcat Jan 21, 2025
045b606
fix: checkbox control stroke width
malangcat Jan 21, 2025
8cefd97
feat: Radio, Select Box에서 control `strokeWidth` 1.25px → 1px
te6-in Jan 22, 2025
478b857
docs: update Control Chip description
te6-in Jan 22, 2025
1b82794
feat(figma-codegen): remove `Icon Both` option for Action Button
te6-in Jan 22, 2025
8a5303d
refactor: Text Button 인터페이스 수정
te6-in Jan 22, 2025
98fc3b9
chore: gen all
te6-in Jan 22, 2025
4099a9d
feat(docs): theme/font scale story를 parameter로 판별하도록 수정
te6-in Jan 22, 2025
4a70fd5
fix: checkbox ghost variant icon
malangcat Jan 22, 2025
45d2615
chore: add chromatic config
malangcat Jan 22, 2025
e4b9260
feat: set font for `<code />` (#508)
te6-in Jan 22, 2025
727a8ab
feat: `$dimension.spacing-y.between-select-boxes` 제거 & `$dimension.sp…
te6-in Jan 22, 2025
9b9a8c1
feat(headless/tab): orientation type
junghyeonsu Jan 22, 2025
1a8d0dd
docs: `V3 텍스트 스타일로 마이그레이션하기` 문서 업데이트
te6-in Jan 22, 2025
54c836c
fix(rootage): broken export path in nested vars
malangcat Jan 22, 2025
a3cfa7d
test: ignore condition names in visual test
malangcat Jan 22, 2025
32d6281
feat: update color naming convention
malangcat Jan 22, 2025
de83c22
feat: add manner temp badge
malangcat Jan 22, 2025
3d4917e
fix: import path
malangcat Jan 22, 2025
5555079
feat(docs): iframe component example
junghyeonsu Jan 23, 2025
425d621
chore(docs): iframe unmount using rootRef
junghyeonsu Jan 23, 2025
3b62e3b
fix(docs): style in iframe
junghyeonsu Jan 23, 2025
be09314
feat:height in component example
junghyeonsu Jan 23, 2025
ed565f2
feat: update error state design
malangcat Jan 23, 2025
dd9f2dd
feat: frame dynamic height
junghyeonsu Jan 23, 2025
8e020a2
feat(figma-extractor): Figma 플러그인을 CLI 툴로 이동 (#509)
te6-in Jan 24, 2025
16c6767
feat(docs): sanity ssg
junghyeonsu Jan 24, 2025
95cd45d
chore: remove `@seed-design/figma-extractor` in codegen
junghyeonsu Jan 24, 2025
f9a602a
feat: rewrite rootage core (#510)
malangcat Jan 24, 2025
4262997
docs(figma-extractor): update readme
te6-in Jan 24, 2025
dca83aa
feat(figma-extractor): component 추출 추가, 요청 청킹 & 로그 추가
te6-in Jan 24, 2025
37a8535
feat(figma-codege): use generated metadata
te6-in Jan 24, 2025
b7c7633
fix(figma-spec-widget): fix import
te6-in Jan 24, 2025
2f28f46
feat(figma-extractor): sort imports
te6-in Jan 24, 2025
480bc20
feat: support codegen for ErrorState, MannerTempBadge & 2 sheets
te6-in Jan 24, 2025
8b4522e
refactor: root layout as server component
malangcat Jan 26, 2025
a40e621
feat: cleanup sanity
malangcat Jan 26, 2025
a909bfc
feat: add mainDocuments to presentation tool
malangcat Jan 26, 2025
3f065f2
feat: studio layout as server component
malangcat Jan 26, 2025
936d068
feat(figma-codegen): truncate & mixed인 경우 comment 추가
te6-in Jan 24, 2025
538f2fc
feat: fix imports & remove tailwind utility classes in examples
te6-in Jan 31, 2025
a57795d
feat: Stackflow cleanup (#502)
malangcat Feb 2, 2025
2fbb864
chore: fix editorconfig typo
malangcat Feb 2, 2025
72c4804
fix: ComponentSpec type resolving
malangcat Feb 2, 2025
fcf269d
feat(rootage): share AST between authoring/exchange format
malangcat Feb 2, 2025
8d0566d
docs: update docs
malangcat Feb 2, 2025
df73db7
docs: Progress Circle 문서 description 수정
te6-in Feb 3, 2025
2f5bbce
feat: export all primitives
malangcat Feb 3, 2025
2ad0d0d
feat: styled pull-to-refresh
malangcat Feb 3, 2025
27e4a98
docs: add demo activity
te6-in Feb 3, 2025
78f7595
refactor: refactor demo
te6-in Feb 3, 2025
c2bdbee
fix(figma-codegen): handle spacing variables & fix some property names
te6-in Feb 3, 2025
6e65f82
refactor: refactor demo-activity
te6-in Feb 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 14 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.1/schema.json",
"$schema": "https://unpkg.com/@changesets/config@3.0.3//schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch"
"updateInternalDependencies": "patch",
"ignore": [
"docs",
"@seed-design/stackflow-spa",
"@seed-design/figma-checklist-widget",
"@seed-design/figma-codegen",
"@seed-design/figma-contrast-checker",
"@seed-design/figma-expose-variables",
"@seed-design/figma-spec-widget"
],
"snapshot": {
"useCalculatedVersion": true
}
}
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
root = ture
root = true
charset = utf-8
end_of_line = lf

[*.{ts,js}]
[*.{ts,js,tsx,mdx,md}]
indent_size = 2
indent_style = space
insert_final_newline = true
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# .github/workflows/chromatic.yml

# Workflow name
name: "Chromatic"

env:
GITHUB_TOKEN: ${{ github.token }}

# Event for the workflow
on:
push:
paths:
- "docs/registry/**"
- "docs/stories/**"
- "docs/.storybook/**"
- "packages/react/**"
- "packages/stylesheet/**"
- "packages/recipe/**"
- ".github/workflows/chromatic.yml"

# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- name: Install dependencies
# 👇 Install dependencies with the same package manager used in the project (replace it as needed) e.g. yarn, npm, pnpm
run: yarn
- name: Build
run: yarn build-only-package
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true
workingDir: docs
69 changes: 20 additions & 49 deletions .github/workflows/docs-deploy-alpha-pages.yml
Original file line number Diff line number Diff line change
@@ -1,76 +1,47 @@
on:
push:
branches:
- '**'
- '!main'

- "**"
- "!main"
paths:
- 'docs/**'
- "docs/**"
- "packages/recipe/**"
- "packages/stylesheet/**"
- "packages/react/**"
- "packages/stackflow/**"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: Deploy Seed Docs Alpha Pages
name: Deploy seed-design-v3 docs (Alpha)

jobs:
deploy:
name: Deploy Seed Docs
name: Deploy Seed Design V3 Docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18.12.1
node-version: 20.11.0
cache: yarn

- name: Install Dependencies
run: yarn install --immutable

- name: Build `seed-design/design-token`
working-directory: ./packages/design-token
run: |
yarn build
- name: Build Packages
run: yarn build-only-package && yarn rootage:build

- name: Build `seed-design/design-theming`
working-directory: ./packages/react-theming
run: |
yarn build

- name: Cache Gatsby `.cache` Folder
uses: actions/cache@v3
id: gatsby-cache-folder
with:
path: docs/.cache
key: ${{ runner.os }}-cache-gatsby
restore-keys: |
${{ runner.os }}-cache-gatsby

- if: steps.gatsby-cache-folder.outputs.cache-hit == 'true'
run: echo 'gatsby-cache-folder cache hit!'

- name: Cache Gatsby `public` Folder
uses: actions/cache@v3
id: gatsby-public-folder
with:
path: docs/public/
key: ${{ runner.os }}-public-gatsby
restore-keys: |
${{ runner.os }}-public-gatsby

- if: steps.gatsby-public-folder.outputs.cache-hit == 'true'
run: echo 'gatsby-public-folder cache hit!'

- name: Build `Seed Docs`
- name: Build Docs
working-directory: ./docs
run: |
yarn build
env:
# incremental builds
# https://www.gatsbyjs.org/docs/page-build-optimizations-for-incremental-data-changes/
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true

- name: Alpha Deploy `Seed Docs` at Cloudflare pages

- name: Deploy docs at Cloudflare Pages in `seed-design-v3` project (Alpha)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages publish ./docs/public --project-name=seed-design --branch=${{ github.ref_name }}
command: pages deploy ./docs/out --project-name=seed-design-v3 --branch=${{ github.ref_name }}
68 changes: 21 additions & 47 deletions .github/workflows/docs-deploy-production-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,47 @@ on:
push:
branches:
- main
- wip # V3
paths:
- 'docs/**'
- "docs/**"
- "packages/recipe/**"
- "packages/stylesheet/**"
- "packages/react/**"
- "packages/stackflow/**"
workflow_dispatch:

name: Deploy Seed Docs Production Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: Deploy seed-design-v3 docs (Production)

jobs:
deploy:
name: Deploy Seed Docs
name: Deploy Seed Design V3 Docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18.12.1
node-version: 20.11.0
cache: yarn

- name: Install Dependencies
run: yarn install --immutable

- name: Build `seed-design/design-token`
working-directory: ./packages/design-token
run: |
yarn build

- name: Build `seed-design/design-theming`
working-directory: ./packages/react-theming
run: |
yarn build

- name: Cache Gatsby `.cache` Folder
uses: actions/cache@v3
id: gatsby-cache-folder
with:
path: docs/.cache
key: ${{ runner.os }}-cache-gatsby
restore-keys: |
${{ runner.os }}-cache-gatsby

- if: steps.gatsby-cache-folder.outputs.cache-hit == 'true'
run: echo 'gatsby-cache-folder cache hit!'

- name: Cache Gatsby `public` Folder
uses: actions/cache@v3
id: gatsby-public-folder
with:
path: docs/public/
key: ${{ runner.os }}-public-gatsby
restore-keys: |
${{ runner.os }}-public-gatsby

- if: steps.gatsby-public-folder.outputs.cache-hit == 'true'
run: echo 'gatsby-public-folder cache hit!'
- name: Build Packages
run: yarn build-only-package && yarn rootage:build

- name: Build `Seed Docs`
- name: Build Docs
working-directory: ./docs
run: |
yarn build
env:
# incremental builds
# https://www.gatsbyjs.org/docs/page-build-optimizations-for-incremental-data-changes/
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true

- name: Production Deploy `Seed Docs` at Cloudflare pages
uses: cloudflare/wrangler-action@2.0.0

- name: Deploy docs at Cloudflare Pages in `seed-design-v3` project (Production)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages publish ./docs/public --project-name=seed-design
command: pages deploy ./docs/out --project-name=seed-design-v3 --branch=main
47 changes: 47 additions & 0 deletions .github/workflows/docs-deploy-qa-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches:
- main
- wip # V3
paths:
- "examples/stackflow-spa/**"
- "packages/recipe/**"
- "packages/stylesheet/**"
- "packages/react/**"
- "packages/stackflow/**"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: Deploy seed-design-v3 QA app

jobs:
deploy:
name: Deploy Seed Design V3 QA app
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20.11.0
cache: yarn

- name: Install Dependencies
run: yarn install --immutable

- name: Build Packages
run: yarn build-only-package

- name: Build QA app
working-directory: ./examples/stackflow-spa
run: |
yarn build

- name: Deploy qa app at Cloudflare Pages in `seed-design-qa` project
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages deploy ./examples/stackflow-spa/dist --project-name=seed-design-qa --branch=main
47 changes: 47 additions & 0 deletions .github/workflows/docs-deploy-storybook-alpha-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches:
- "**"
- "!main"

paths:
- "docs/**"
- "packages/recipe/**"
- "packages/stylesheet/**"
- "packages/react/**"
- "packages/stackflow/**"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: Deploy seed-design-v3 Storybook Alpha

jobs:
deploy:
name: Deploy seed-design-v3 Storybook Alpha
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20.11.0
cache: yarn

- name: Install Dependencies
run: yarn install --immutable

- name: Build Packages
run: yarn build-only-package

- name: Build Storybook
working-directory: ./docs
run: yarn build-storybook

- name: Deploy docs at Cloudflare Pages in `seed-design-v3-storybook` project (Alpha)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages deploy ./docs/storybook-static --project-name=seed-design-v3-storybook --branch=${{ github.ref_name }}
Loading