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

feat/#39 changeset 세팅 및 npm 배포 CI/CD 설정 #67

Merged
merged 55 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ddfecf8
chore: changeset 설치
ShinYoung-Kim Jul 31, 2024
d7aa1ae
chore: changelog 레포 설정 추가 및 access 변경
ShinYoung-Kim Jul 31, 2024
0f95fed
chore: publish 명령어 생성
ShinYoung-Kim Jul 31, 2024
da9b456
chore: changeset github action 생성
ShinYoung-Kim Jul 31, 2024
93ac761
feat: changeset 파일 생성
ShinYoung-Kim Jul 31, 2024
b637d29
chore/#25 husky, lint-staged 세팅 (#44)
gs0428 Aug 17, 2024
691dfaf
feat/#54 패키지 매니저 버전 강제하도록 설정 (#57)
ghdtjgus76 Aug 17, 2024
7306422
chore/#37 jest 설정 (#43)
minai621 Aug 20, 2024
b70cd26
feat/#12 Primitive UI codegen 세팅 (#42)
ghdtjgus76 Aug 20, 2024
803da60
chore: release action node 버전 변경
ShinYoung-Kim Aug 20, 2024
74cab14
chore/#38 playwright 테스트 설정 (#61)
minai621 Aug 26, 2024
11aea23
feat/#51 공통 prettier 설정 불러오도록 설정 변경 (#56)
ghdtjgus76 Aug 30, 2024
375c51e
chore/#46 D-day Labeler workflow 추가 (#66)
minai621 Aug 30, 2024
2dbdc44
fix/#47 빌드 버그 해결 (#64)
ShinYoung-Kim Sep 1, 2024
c669a48
chore/#65 jest.setup.ts 설정 (#72)
minai621 Sep 1, 2024
30ff7e8
chore: local github action test용 secret 파일 gitignore에 추가 (#68)
ShinYoung-Kim Sep 2, 2024
798ea46
feat/#48 Divider 컴포넌트 개발 (#73)
gs0428 Sep 4, 2024
11051d0
fix/#74 템플릿 수정 (#79)
gs0428 Sep 4, 2024
5af121c
docs/#75 컴포넌트 pr 템플릿 생성 (#80)
gs0428 Sep 4, 2024
ab93186
feat: yml 커밋 메시지 추가
ShinYoung-Kim Sep 12, 2024
e058602
chore: config ignore 추가
ShinYoung-Kim Sep 12, 2024
a5f9e1d
feat/#50 github action 워크플로우 최적화 (#90)
ghdtjgus76 Sep 12, 2024
8311f48
feat/#85 codegen에 e2e 테스트 코드 템플릿 생성 및 적용 (#92)
ghdtjgus76 Sep 13, 2024
b96c727
test/#84 Divider vrt 테스트 추가 (#91)
gs0428 Sep 15, 2024
56c2338
chore: changeset 설치
ShinYoung-Kim Sep 20, 2024
0282834
chore: changelog 레포 설정 추가 및 access 변경
ShinYoung-Kim Sep 20, 2024
87f7b2d
chore: publish 명령어 생성
ShinYoung-Kim Sep 20, 2024
f18ae6c
chore: changeset github action 생성
ShinYoung-Kim Sep 20, 2024
b4b9ab7
feat: changeset 파일 생성
ShinYoung-Kim Sep 20, 2024
0700110
chore: release action node 버전 변경
ShinYoung-Kim Sep 20, 2024
f697357
feat: yml 커밋 메시지 추가
ShinYoung-Kim Sep 20, 2024
e17fa1d
chore: config ignore 추가
ShinYoung-Kim Sep 20, 2024
62eb4d4
Merge branch 'feat/#39' of https://github.com/team-warrr/warrr-ui int…
ShinYoung-Kim Sep 20, 2024
db6f664
chore: action 파일 최적화 반영
ShinYoung-Kim Sep 20, 2024
138f606
chore: name 수정
ShinYoung-Kim Sep 20, 2024
ef18c76
chore/#93 husky 오류 해결 (#112)
ShinYoung-Kim Sep 25, 2024
e9a2112
chore: changeset 설치
ShinYoung-Kim Oct 9, 2024
1aa43c3
chore: changelog 레포 설정 추가 및 access 변경
ShinYoung-Kim Oct 9, 2024
e7ea8c8
chore: publish 명령어 생성
ShinYoung-Kim Oct 9, 2024
b0a82dd
chore: changeset github action 생성
ShinYoung-Kim Oct 9, 2024
4f224f3
feat: changeset 파일 생성
ShinYoung-Kim Oct 9, 2024
f82e0e6
chore: release action node 버전 변경
ShinYoung-Kim Oct 9, 2024
602ef6b
feat: yml 커밋 메시지 추가
ShinYoung-Kim Oct 9, 2024
7c6892c
chore: config ignore 추가
ShinYoung-Kim Oct 9, 2024
b6a3d1b
chore: changeset 설치
ShinYoung-Kim Oct 9, 2024
310c475
chore: publish 명령어 생성
ShinYoung-Kim Oct 9, 2024
449e0a8
chore: changeset github action 생성
ShinYoung-Kim Oct 9, 2024
b85cc3a
chore: action 파일 최적화 반영
ShinYoung-Kim Oct 9, 2024
4fb0a21
chore: name 수정
ShinYoung-Kim Oct 9, 2024
41b014f
Merge branch 'feat/#39' of https://github.com/team-warrr/warrr-ui int…
ShinYoung-Kim Oct 9, 2024
9cdd409
chore: 코더레빗 코드리뷰 반영
ShinYoung-Kim Oct 9, 2024
5ef7913
Merge branch 'develop' into feat/#39
ShinYoung-Kim Oct 9, 2024
39f47c7
fix: script " 삭제
ShinYoung-Kim Oct 9, 2024
12454aa
Merge branch 'feat/#39' of https://github.com/team-warrr/warrr-ui int…
ShinYoung-Kim Oct 9, 2024
3c1d665
fix: lock 파일 수정
ShinYoung-Kim Oct 9, 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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
6 changes: 6 additions & 0 deletions .changeset/big-eggs-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"warrr": patch
"primitive": patch
---

changeset 생성 실습
16 changes: 16 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
"changelog": [
"@changesets/cli/changelog",
{
"repo": "team-warrr/warrr-ui"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["primitive-docs", "themed-docs"]
}
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store

jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: 레포지토리 체크아웃
uses: actions/checkout@v3
with:
fetch-depth: 0

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

- name: pnpm 설치
run: npm i pnpm@latest -g
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest 버전이 아니라 저희가 package.json에 지정한 버전이어야 할 거 같습니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

action 파일 최적화 pr 참고해서 반영했습니다!


- name: npmrc 파일 생성
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: pnpm 설정
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변수를 따옴표로 감싸주세요.

shellcheck가 다음과 같은 이슈를 발견했습니다:

SC2086:info:1:27: Double quote to prevent globbing and word splitting

변수 주위에 따옴표를 추가하여 글로빙과 단어 분할을 방지해야 합니다.

다음과 같이 변경하는 것이 좋겠습니다:

-  run: pnpm config set store-dir $PNPM_CACHE_FOLDER
+  run: pnpm config set store-dir "$PNPM_CACHE_FOLDER"  
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: pnpm 설정
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: pnpm 설정
run: pnpm config set store-dir "$PNPM_CACHE_FOLDER"
Tools
actionlint

33-33: shellcheck reported issue in this script: SC2086:info:1:27: Double quote to prevent globbing and word splitting

(shellcheck)


- name: 의존성 설치
run: pnpm install

- name: 버전 업데이트 및 npm 배포
uses: changesets/action@v1
with:
version: pnpm changeset version
title: "chore: 버전 업데이트"
commit: "chore: 버전 업데이트"
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint": "8.57.0",
Expand All @@ -17,10 +21,7 @@
"eslint-plugin-react-hooks": "^4.6.2",
"prettier": "^3.2.5",
"turbo": "^2.0.4",
"typescript": "^5.4.5",
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0"
"typescript": "^5.4.5"
},
"packageManager": "pnpm@8.15.6",
"engines": {
Expand Down
Loading