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

[Feature] 프로젝트 초기 세팅 #3

Merged
merged 178 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
0659c2d
feat(create-turbo): apply official-starter transform
turbobot-temp May 4, 2024
d0bc003
feat(create-turbo): apply pnpm-eslint transform
turbobot-temp May 4, 2024
2361a2f
feat(create-turbo): install dependencies
turbobot-temp May 4, 2024
e5c0ff4
feat: 터보레포 init
ghdtjgus76 May 4, 2024
7caf3cd
feat: wow-docs 워크스페이스 폴더 구조 세팅
ghdtjgus76 May 4, 2024
21e20f9
feat: wow-ui 워크스페이스 폴더구조 세팅
ghdtjgus76 May 4, 2024
f11e001
feat: wow-icons 워크스페이스 폴더구조 세팅
ghdtjgus76 May 4, 2024
ba851fd
feat: wow-tokens 워크스페이스 폴더구조 세팅
ghdtjgus76 May 4, 2024
3782493
feat: 공통 의존성 root에 설치
ghdtjgus76 May 4, 2024
a776288
feat: wow-docs 워크스페이스 panda css 세팅
ghdtjgus76 May 4, 2024
1628d80
feat: wow-tokens 워크 스페이스 세팅 및 배포
ghdtjgus76 May 4, 2024
d41a911
feat: wow-docs theme 적용
ghdtjgus76 May 4, 2024
c7f4b0c
chore: wow-docs textStyle 객체 구조 변경
ghdtjgus76 May 4, 2024
b827889
feat: wow-icons 워크스페이스 세팅 및 배포
ghdtjgus76 May 4, 2024
ef62c23
chore: wow-icons svg 파일 리액트 컴포넌트 방식으로 export하도록 수정
ghdtjgus76 May 4, 2024
e555a90
fix: wow-icons docs에서 적용 안 되는 문제 해결
ghdtjgus76 May 4, 2024
64b59df
feat: wow-ui 워크스페이스 세팅 및 배포
ghdtjgus76 May 4, 2024
d3d9a99
chore: npm 패키지명 변경
ghdtjgus76 May 4, 2024
4ddaf2d
feat: wow-ui 워크스페이스 세팅 및 배포
ghdtjgus76 May 4, 2024
b3a6a62
feat: codeowners 세팅
ghdtjgus76 May 4, 2024
4073ed8
feat: chromatic 배포 액션 추가
ghdtjgus76 May 4, 2024
380d80e
feat: changeset 세팅
ghdtjgus76 May 4, 2024
5d4e3de
feat: changelog 자동화 기능 추가
ghdtjgus76 May 4, 2024
4f0a390
feat: wow-docs 절대 경로 세팅 추가
ghdtjgus76 May 4, 2024
f5c58b9
feat: wow-icons 절대 경로 세팅 추가
ghdtjgus76 May 4, 2024
de543a1
feat: wow-tokens 절대 경로 세팅 추가
ghdtjgus76 May 4, 2024
f163e52
feat: wow-ui 절대 경로 세팅 추가
ghdtjgus76 May 4, 2024
5222628
feat: wow-docs import문 순서 조정
ghdtjgus76 May 4, 2024
8b5d2bb
feat: wow-ui import문 순서 조정
ghdtjgus76 May 4, 2024
2c8c712
chore: release 워크플로우 수정
ghdtjgus76 May 4, 2024
9167067
chore: jest 관련 공통 의존성 제거
ghdtjgus76 May 5, 2024
715064c
docs: 이슈 템플릿 생성
ghdtjgus76 May 5, 2024
94bb0e3
feat: wow-ui 스토리북 웹 접근성 애드온 추가
ghdtjgus76 May 5, 2024
fc1ab64
docs: pr 템플릿 추가
ghdtjgus76 May 5, 2024
273189b
fix: rollup config 잘못된 확장자 지정 문제 해결
ghdtjgus76 May 5, 2024
da731d9
chore: wow-docs panda config 추가
ghdtjgus76 May 5, 2024
6773831
chore: wow-ui panda config 추가
ghdtjgus76 May 5, 2024
dba0586
feat: theme-config 워크스페이스 추가
ghdtjgus76 May 5, 2024
dbe5065
chore: wow-docs에 theme-config 적용
ghdtjgus76 May 5, 2024
a6e0ee1
rename: theme 워크스페이스 이름 변경
ghdtjgus76 May 5, 2024
7705503
feat: turbo pipeline 변경 및 build 스크립트 추가
eugene028 May 5, 2024
bd552d6
feat: preinstall 추가
eugene028 May 5, 2024
afc800a
feat: dist 파일 추가
eugene028 May 5, 2024
8a3934b
chore: 의존성 복구
eugene028 May 5, 2024
0dd366a
chore: npm 의존성 삭제
eugene028 May 5, 2024
253cbe7
chore: 판다 디펜던시 삭제
eugene028 May 5, 2024
7bce60c
chore: 크로마틱 배포 워크플로우 수정
ghdtjgus76 May 5, 2024
6c276fe
Merge pull request #2 from GDSC-Hongik/feature/preinstall-build
eugene028 May 6, 2024
d6719fd
fix: 크로마틱 배포 워크플로우 수정
ghdtjgus76 May 6, 2024
f1547fb
fix: 크로마틱 배포 워크 플로우 pnpm install 시 no-frozen-lockfile 속성 추가
ghdtjgus76 May 6, 2024
a394b62
fix: ButtonProps 이름 찾지 못하는 오류 해결
eugene028 May 6, 2024
36f4fb9
chore: pnpm install
ghdtjgus76 May 6, 2024
300e048
fix: 크로마틱 배포 시 panda css 설치 및 init하도록 수정
ghdtjgus76 May 6, 2024
a5815a0
chore: styled-system 깃허브에 추가
ghdtjgus76 May 6, 2024
0033b09
chore: 쓸모없는 generator 삭제
eugene028 May 6, 2024
e6c4f90
fix: wowds 디자인 시스템 이름 변경
eugene028 May 6, 2024
293c290
chore: preinstall 스크립트 삭제
ghdtjgus76 May 6, 2024
96d1e18
fix: 크로마틱 배포 워크 플로우 수정
ghdtjgus76 May 6, 2024
69b2afa
fix: wow-ui 롤업 배포 절대 경로 설정 추가
ghdtjgus76 May 6, 2024
7dd9e1a
fix: 롤업 설정 절대 경로 세팅 추가
ghdtjgus76 May 6, 2024
8f68070
chore: prepare 스크립트 삭제
ghdtjgus76 May 6, 2024
1d32376
fix: 크로마틱 배포 워크플로우 수정
ghdtjgus76 May 6, 2024
a99d5ae
fix: 크로마틱 배포 워크플로우 수정
ghdtjgus76 May 6, 2024
9711b8c
fix: 버전배포
eugene028 May 6, 2024
b96bba0
Merge branch 'feature/project-setting' into feature/new-component-test
eugene028 May 6, 2024
487db7a
chore: 패키지 배포 버전업
eugene028 May 6, 2024
d79750a
chore: 롤업 세팅 변경
eugene028 May 7, 2024
f2212ff
fix: cjs에서 트리쉐이킹 지원
eugene028 May 7, 2024
3008e75
Merge pull request #4 from GDSC-Hongik/feature/new-component-test
eugene028 May 7, 2024
c06694b
fix: pnpm install 시 --no-frozen-lockfile 속성 추가해주도록 변경
ghdtjgus76 May 7, 2024
566bcc1
fix: 의존성 문제 해결
ghdtjgus76 May 7, 2024
67126f9
fix: cjs에서 트리쉐이킹 안됨
eugene028 May 7, 2024
72e83bd
fix: next의존성 삭제
eugene028 May 7, 2024
96529dd
fix: eslint 루트에서 실행되도록 변경
eugene028 May 8, 2024
16afc50
chore: wow-ui폴더의 typescript eslint 설정파일 제거
eugene028 May 8, 2024
9792e85
chore: app -> src 파일명 변경
eugene028 May 8, 2024
66c35a6
chore: apps파일에 존재하는 eslint 제거
eugene028 May 8, 2024
cf47dab
chore: 사용하지 않는 config 패키지 제거
eugene028 May 8, 2024
a813e36
chore: 삭제되지 않았던 디펜던시 제거
eugene028 May 9, 2024
37f5091
chore: 코드리뷰 반영
eugene028 May 9, 2024
f3df3dc
chore: 롤업 플러그인 devDependency로 이동
ghdtjgus76 May 9, 2024
5f52658
rename: wow-docs src 폴더 app으로 폴더명 변경
ghdtjgus76 May 9, 2024
5426444
chore: wow-docs 절대 경로 세팅 변경
ghdtjgus76 May 9, 2024
6640cab
chore: 깔려있지 않던 eslint config 세팅
eugene028 May 10, 2024
dbaf968
chore: prettier 적용
eugene028 May 10, 2024
d7dd3e8
chore: eslint 패키지 플러그인 설치
eugene028 May 10, 2024
1e621a8
fix: eslint rules 커스텀 적용
eugene028 May 10, 2024
c0a518e
feat: husky 추가
eugene028 May 10, 2024
e9037d9
chore: PR 수정
eugene028 May 10, 2024
8b024f4
Merge pull request #12 from GDSC-Hongik/feature/husky-lint
eugene028 May 12, 2024
b5d79d9
[Refactor] 롤업 설정 변경 (#11)
ghdtjgus76 May 12, 2024
e3343b6
feat: 스토리북 테스트 러너 세팅
ghdtjgus76 May 13, 2024
d2bf129
docs: 웹 접근성 테스트 자동화 워크플로우 작성
ghdtjgus76 May 13, 2024
cc66c81
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
26acc8f
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
f23f777
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
cc8966f
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
9e1ac56
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
0977e88
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
65f4ab7
chore: 스토리북 테스트 스크립트 변경
ghdtjgus76 May 13, 2024
71ef9c0
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
8563064
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
5459d93
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
ba3d9c4
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
8e1c070
fix: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
7e055b9
chore: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
06d56c6
chore: 웹 접근성 자동화 워크플로우 수정
ghdtjgus76 May 13, 2024
c1ab5f3
chore: 설치되지 않은 패키지 보충
eugene028 May 14, 2024
37bca64
Merge pull request #7 from GDSC-Hongik/feature/eslint-setting
eugene028 May 14, 2024
5ac30ca
chore: postcss 의존성 설치
hamo-o May 9, 2024
deddcf9
feat: remove unused keyframes
hamo-o May 9, 2024
e9246f0
feat: remove unused css vars
hamo-o May 9, 2024
e3870a3
feat: panda config에 불필요한 css를 제거하는 hook 추가
hamo-o May 9, 2024
62abef0
chore: 주석 제거
hamo-o May 14, 2024
40a3a2a
fix: 타입 오류 수정
hamo-o May 14, 2024
a899795
refactor: css, keyframes 제거 함수 theme/utils 이동
hamo-o May 14, 2024
bcacd2c
feat: docs에 css 제거 hook 추가 및 tsconfig 변경
hamo-o May 14, 2024
21cf833
chore: files 정의 및 exports 진입점 설정
hamo-o May 16, 2024
152216e
fix: 삭제한 패키지 의존성 삭제
hamo-o May 16, 2024
60b2091
chore: 사용하지 않는 files 옵션 삭제
hamo-o May 16, 2024
38d1e2f
Merge pull request #9 from GDSC-Hongik/refactor/wow-ui-panda.config.ts
hamo-o May 16, 2024
73f3541
fix: rollup 플러그인 최신으로 변경
hamo-o May 9, 2024
06c2d36
fix: rollup config import 및 babel 옵션 변경
hamo-o May 9, 2024
9c082d0
fix: tokens babel setting
hamo-o May 14, 2024
ebfa8c8
fix: rollup config eslint 충돌
hamo-o May 16, 2024
153b3da
Merge pull request #8 from GDSC-Hongik/fix/rollup-dependencies
hamo-o May 16, 2024
7f5cbcf
[Feature(theme,wow-tokens,wow-docs)] 컬러 토큰, 타이포 토큰 세팅 (#16)
SeieunYoo May 16, 2024
2e040fa
chore: 크로마틱 배포 워크플로우 수정
ghdtjgus76 May 17, 2024
3a28c12
fix: 웹 접근성 자동화 테스트 워크 플로우 수정
ghdtjgus76 May 17, 2024
0707558
fix: 웹 접근성 테스트 자동화 실패 관련 문제 해결
ghdtjgus76 May 17, 2024
b1bf1f8
chore: test runner 설정 변경
ghdtjgus76 May 17, 2024
387d23c
chore: 웹 접근성 테스트 워크플로우 수정
ghdtjgus76 May 17, 2024
4249a1c
chore: 웹 접근성 테스트 워크플로우 수정
ghdtjgus76 May 17, 2024
e3bcffb
chore: 웹 접근성 테스트 워크플로우 수정
ghdtjgus76 May 17, 2024
9efc616
chore: 워크플로우 캐시 사용하도록 수정
ghdtjgus76 May 17, 2024
8b13d76
chore: jest 의존성 설치
hamo-o May 11, 2024
5505e6b
chore: 기타 jest 관련 라이브러리 설치 및 script 등록
hamo-o May 12, 2024
0658e35
feat: jest config 설정
hamo-o May 12, 2024
b6a0022
test: Button 임시 테스트 작성
hamo-o May 12, 2024
0b2ea5e
chore: babel 관련 라이브러리
hamo-o May 14, 2024
d61377f
refactor: babel 설정 파일 관리
hamo-o May 14, 2024
3d183fe
chore: jest config ts 파일 사용을 위한 ts-node 의존성 설치
hamo-o May 14, 2024
d607e28
feat: turbo pipeline test 추가
hamo-o May 14, 2024
8adb702
feat: jest config 설정
hamo-o May 14, 2024
a811764
fix: babel 옵션 수정
hamo-o May 16, 2024
70809c1
feat: 공통 jest config package
hamo-o May 16, 2024
c604708
fix: eslint jest config 무시 설정
hamo-o May 16, 2024
60a0bd9
feat: wow-docs jest 세팅
hamo-o May 16, 2024
234fa7b
fix: shared-config package 교체
hamo-o May 16, 2024
d0aca89
fix: eslint jest env 설정
hamo-o May 17, 2024
98c9043
refactor: babel-config shared-config로 통합
hamo-o May 17, 2024
95889da
chore: shared-config 패키지 이름 변경
hamo-o May 18, 2024
03cfb69
style: import sort lint 규칙 따르도록 수정
hamo-o May 18, 2024
ff6e387
Merge pull request #17 from GDSC-Hongik/feature/jest-setting
hamo-o May 18, 2024
aafc7b7
chore: 워크플로우에 캐시 적용
ghdtjgus76 May 18, 2024
f567804
chore: 공통 워크 플로우 분리
ghdtjgus76 May 18, 2024
1d28c86
fix: 잘못된 caller 워크플로우 수정
ghdtjgus76 May 18, 2024
25b9179
fix: 잘못된 caller 워크플로우 수정
ghdtjgus76 May 18, 2024
c096b96
fix: 잘못된 caller 워크플로우 수정
ghdtjgus76 May 18, 2024
d8f616b
chore: 워크플로우 변경
ghdtjgus76 May 18, 2024
7461f47
chore: 워크플로우 변경
ghdtjgus76 May 18, 2024
05a70b6
chore: 워크플로우 변경
ghdtjgus76 May 18, 2024
ce61db7
chore: 워크플로우 변경
ghdtjgus76 May 18, 2024
8c096e3
refactor: 공통 워크 플로우 분리
ghdtjgus76 May 18, 2024
8dfa384
chore: 워크 플로우 수정
ghdtjgus76 May 18, 2024
ca659d6
chore: 워크 플로우 수정
ghdtjgus76 May 18, 2024
a5e8f84
chore: 워크 플로우 수정
ghdtjgus76 May 18, 2024
d2ec267
feat: test 워크플로우 추가
ghdtjgus76 May 18, 2024
80da4a6
chore: test 워크플로우 수정
ghdtjgus76 May 18, 2024
6b95df7
design: lint 관련 경고 해결
ghdtjgus76 May 18, 2024
b9370fc
chore: wow-docs layout 함수 선언 방식으로 변경
ghdtjgus76 May 18, 2024
70f43ba
chore: wow-docs eslint 경고 해결
ghdtjgus76 May 18, 2024
82a6776
fix: wow-ui panda config에서 theme 못 불러오는 문제 해결
ghdtjgus76 May 19, 2024
bdb3695
fix: test 파일 dist 빌드 결과물에서 제외
hamo-o May 19, 2024
2a73592
fix : lint 에러 수정
SeieunYoo May 19, 2024
ae813a5
refactor: shared-config에서 rollup config 공통으로 관리하도록 수정
ghdtjgus76 May 19, 2024
5f22f26
chore: babel 공통 설정 파일 프리셋 변경
ghdtjgus76 May 19, 2024
ce258d8
chore: babel 공통 설정 파일 프리셋 이전으로 변경
ghdtjgus76 May 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .changeset/README.md
Empty file.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "GDSC-Hongik/wow-design-system" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
135 changes: 135 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
// This configuration only applies to the package manager root.
const { resolve } = require("node:path");

const project = resolve(process.cwd(), "tsconfig.json");
/** @type {import("eslint").Linter.Config} */

module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project,
},
extends: [
"eslint:recommended",
"plugin:storybook/recommended",
"plugin:import/recommended",
"plugin:react-hooks/recommended",
"plugin:import/typescript",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"eslint-config-turbo",
],
plugins: [
"@typescript-eslint/eslint-plugin",
"react",
"only-warn",
"simple-import-sort",
],
globals: {
React: true,
JSX: true,
},
env: {
browser: true,
node: true,
es6: true,
commonjs: true,
},
rules: {
"no-unused-vars": "error",
eqeqeq: [
"error",
"always",
{
null: "ignore",
},
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/function-component-definition": [
"error",
{
namedComponents: "arrow-function",
},
],
"react/jsx-curly-brace-presence": [
"error",
{
props: "never",
children: "never",
},
],
"react/jsx-sort-props": [
"error",
{
callbacksLast: true,
multiline: "last",
shorthandFirst: true,
},
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/naming-convention": [
"error",
{
format: ["camelCase", "UPPER_CASE", "PascalCase"],
selector: "variable",
leadingUnderscore: "allow",
},
{
format: ["camelCase", "PascalCase"],
selector: "function",
},
{
format: ["PascalCase"],
selector: "interface",
},
{
format: ["PascalCase"],
selector: "typeAlias",
},
],
"@typescript-eslint/no-empty-function": "warn",
"import/no-duplicates": "error",
"import/namespace": [
"error",
{
allowComputed: true,
},
],
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},

settings: {
"import/ignore": ["^@styled-system/css/css"],
"import/resolver": {
typescript: { project },
},
react: {
version: "detect",
},
},

ignorePatterns: [
".*.js",
"node_modules/",
"dist/",
"styled-system/",
"panda.config.ts",
"rollup.config.js",
"postcss.config.cjs",
"jest.config.ts",
"jest.setup.ts",
"coverage/",
],

env: {
jest: true,
},
};
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ghdtjgus76 @eugene028 @hamo-o @SeieunYoo @kongnayeon
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: bug issue template
about: 버그 수정
title: "[Bug]"
labels: bug
assignees: ''

---

## 🎯 설명

## ✅ TODO
- [ ]
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/design-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: design issue template
about: 디자인 수정
title: "[Design]"
labels: design
assignees: ''

---

## 🎯 설명

## ✅ TODO
- [ ]
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Feature issue template
about: 기능 구현
title: "[Feature]"
labels: feature
assignees: ''

---

## 🎯 설명

## ✅ TODO
- [ ]
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/refactor-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: refactor issue template
about: 리팩토링
title: "[Refactor]"
labels: refactor
assignees: ''

---

## 🎯 설명

## ✅ TODO
- [ ]
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 🎉 변경 사항

## 🚩 관련 이슈

### 🙏 여기는 꼭 봐주세요!
65 changes: 65 additions & 0 deletions .github/workflows/a11y-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "a11y-test"

on:
pull_request:
branches:
- main
paths:
- packages/wow-ui/src/**

jobs:
accessibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install Pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Install Dependency
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Install Playwright
run: pnpm dlx playwright install --with-deps
working-directory: packages/wow-ui

- name: Build Packages
run: pnpm build

- name: Start Storybook
run: |
nohup pnpm storybook &
sleep 10
curl --retry 10 --retry-connrefused http://localhost:6006
working-directory: packages/wow-ui

- name: Run Tests
run: pnpm test-storybook
working-directory: packages/wow-ui

- name: Kill Storybook process
run: |
PID=$(ps -ef | grep "pnpm storybook" | grep -v grep | awk '{print $2}')
if [ -n "$PID" ]; then
kill -9 $PID
fi
working-directory: packages/wow-ui
50 changes: 50 additions & 0 deletions .github/workflows/deploy-chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "deploy-chromatic"

on:
pull_request:
branches:
- main
paths:
- packages/wow-ui/src/**

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Install Dependency
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Build packages
run: pnpm build

- name: Publish Chromatic
id: chromatic
uses: chromaui/action@v1
with:
workingDir: packages/wow-ui/src
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.TOKEN }}
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "release"

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Install Dependency
run: pnpm install --no-frozen-lockfile
working-directory: packages/wow-ui

- name: Build packages
run: pnpm build

- name: Create .npmrc file
run: |
cat << EOF > "$HOME/.npmrc"
[email protected]
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: pnpm changeset version
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading
Loading