@samkwang/ui-kit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -124,21 +124,23 @@ npm run lint
124
124
 
125
125
  ### 사전 준비
126
126
 
127
- 1. [npmjs.com](https://www.npmjs.com/)에서 `samkwang` 조직을 생성합니다.
128
- 2. npm 로그인합니다.
127
+ 1. [npmjs.com](https://www.npmjs.com/)에서 `samkwang` 조직이 존재하는지 확인합니다.
128
+ 2. 프로젝트 루트에 `.env` 파일을 생성하고 npm 토큰을 설정합니다.
129
129
 
130
130
  ```bash
131
- npm login
131
+ # .env
132
+ NPM_TOKEN=your_npm_token_here
132
133
  ```
133
134
 
135
+ > `.env` 파일은 `.gitignore`에 포함되어 Git에 커밋되지 않습니다. npm 토큰은 npmjs.com → Access Tokens에서 발급할 수 있습니다.
136
+
134
137
  ### 배포
135
138
 
136
139
  ```bash
137
- # package.json의 version을 업데이트한 후
138
- npm publish
140
+ npm run publish:npm
139
141
  ```
140
142
 
141
- `publishConfig.access`가 `"public"`으로 설정되어 있으므로 별도 플래그 없이 공개 배포됩니다.
143
+ 스크립트는 `.env`에서 `NPM_TOKEN`을 읽어 자동으로 인증 공개 배포합니다. 빌드(`tsup`)도 자동 실행됩니다.
142
144
 
143
145
  ### 버전 업데이트
144
146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samkwang/ui-kit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Samkwang Design System UI Components for React / Next.js",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",