-
Notifications
You must be signed in to change notification settings - Fork 2
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
Changes from 8 commits
ddfecf8
d7aa1ae
0f95fed
da9b456
93ac761
b637d29
691dfaf
7306422
b70cd26
803da60
74cab14
11aea23
375c51e
2dbdc44
c669a48
30ff7e8
798ea46
11051d0
5af121c
ab93186
e058602
a5f9e1d
8311f48
b96c727
56c2338
0282834
87f7b2d
f18ae6c
b4b9ab7
0700110
f697357
e17fa1d
62eb4d4
db6f664
138f606
ef18c76
e9a2112
1aa43c3
e7ea8c8
b0a82dd
4f224f3
f82e0e6
602ef6b
7c6892c
b6a3d1b
310c475
449e0a8
b85cc3a
4fb0a21
41b014f
9cdd409
5ef7913
39f47c7
12454aa
3c1d665
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"warrr": patch | ||
"primitive": patch | ||
--- | ||
|
||
changeset 생성 실습 |
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"] | ||
} |
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 | ||||||||||
|
||||||||||
- name: npmrc 파일 생성 | ||||||||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | ||||||||||
|
||||||||||
- name: pnpm 설정 | ||||||||||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 변수를 따옴표로 감싸주세요. shellcheck가 다음과 같은 이슈를 발견했습니다:
변수 주위에 따옴표를 추가하여 글로빙과 단어 분할을 방지해야 합니다. 다음과 같이 변경하는 것이 좋겠습니다: - run: pnpm config set store-dir $PNPM_CACHE_FOLDER
+ run: pnpm config set store-dir "$PNPM_CACHE_FOLDER" Committable suggestion
Suggested change
Toolsactionlint
|
||||||||||
|
||||||||||
- 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 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest 버전이 아니라 저희가 package.json에 지정한 버전이어야 할 거 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
action 파일 최적화 pr 참고해서 반영했습니다!