Skip to content

Commit

Permalink
feat: Private -> Public 변경
Browse files Browse the repository at this point in the history
feat: package.json 수정

feat: changesets.yml 수정
  • Loading branch information
jklasd2001 committed Jun 12, 2023
1 parent 5332b63 commit 79ef477
Show file tree
Hide file tree
Showing 10 changed files with 125 additions and 97 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-turtles-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@musma/react-icons": patch
---

feat: [react-icons] 라이브러리 업데이트
5 changes: 5 additions & 0 deletions .changeset/fair-coats-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@musma/react-component": patch
---

feat: [react-component] 라이브러리 업데이트
5 changes: 5 additions & 0 deletions .changeset/nasty-weeks-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@musma/eslint-config-react": patch
---

feat: [eslint-config-react] 라이브러리 업데이트
8 changes: 8 additions & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
# 의존성 설치한다.
- name: Install dependencies
run: pnpm install
# 배포를 위해 .npmrc 파일을 생성하고 인증 토큰을 추가한다.
- name: Configure npm
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Changesets에서 제공하는 Action 사용
- name: Create release Pull Request or Publish to Github Packages
uses: changesets/action@v1
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Private -> Public 가시성 변경(2023-06-12)

## 배포 방법

1. 코드를 수정합니다.
Expand All @@ -15,3 +17,14 @@
- [https://maurodaprotis.hashnode.dev/how-to-add-changesets-workflow-to-a-simple-package-repo-on-github](https://maurodaprotis.hashnode.dev/how-to-add-changesets-workflow-to-a-simple-package-repo-on-github)
- [https://wiki.lucashan.space/programming/setting-monorepo-for-github-npm-registry-2/](https://wiki.lucashan.space/programming/setting-monorepo-for-github-npm-registry-2/)
- [https://wallacearchivemain.gatsbyjs.io/blog/auto-release-flow/](https://wallacearchivemain.gatsbyjs.io/blog/auto-release-flow/)

## Github Packages Private 배포 시

```
.npmrc에 아래 내용을 넣습니다.
.npmrc 파일의 경로는 프로젝트 또는 루트 폴더(cd ~) 둘 중 하나에 넣으면 됩니다.
@musma:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=토큰을넣어주세요
//registry.npmjs.org/:_authToken=토큰을넣어주세요
```
3 changes: 0 additions & 3 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^2.0.0",
"prettier": "^2.8.8"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
3 changes: 0 additions & 3 deletions packages/react-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,5 @@
"react": ">=18.2.0",
"react-dom": ">=18.2.0",
"react-router-dom": ">=6.4.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
5 changes: 1 addition & 4 deletions packages/react-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,5 @@
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
}
3 changes: 0 additions & 3 deletions packages/react-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,5 @@
"react-dom": ">=18.2.0",
"react-hook-form": ">=7.39.0",
"react-router-dom": ">=6.4.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
Loading

0 comments on commit 79ef477

Please sign in to comment.