@udi-organization/udi-package 1.0.66 → 1.0.67
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.
- package/README.md +20 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -151,7 +151,7 @@ chmod +x .git/hooks/pre-push
|
|
|
151
151
|
// 單次編譯
|
|
152
152
|
"build": "rollup -c",
|
|
153
153
|
|
|
154
|
-
//
|
|
154
|
+
// 發布新版本(已改為 GitLab CI 自動處理,一般不需手動執行)
|
|
155
155
|
"release": "自動更新版本號並發布至 npm"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -200,17 +200,28 @@ npm run dev-udi
|
|
|
200
200
|
|
|
201
201
|
### 步驟 4: 發布新版本
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
版本發布已改為由 **GitLab CI 自動化處理**,不需要手動執行 `npm run release`。
|
|
204
204
|
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
**發布流程**:
|
|
206
|
+
|
|
207
|
+
1. 確保所有變更已 commit
|
|
208
|
+
2. 推送到 GitLab
|
|
209
|
+
3. GitLab CI 會自動執行測試、建置和發布
|
|
207
210
|
|
|
208
211
|
```bash
|
|
209
212
|
# 在 udi-package 目錄
|
|
210
213
|
git add .
|
|
211
214
|
git commit -m "feat: 新功能說明"
|
|
212
215
|
git push origin "new feature branch"
|
|
213
|
-
|
|
216
|
+
# GitLab CI 會自動處理發布流程
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**查看發布狀態**: 在 GitLab 專案的 CI/CD > Pipelines 頁面查看自動發布的執行狀態。
|
|
221
|
+
|
|
222
|
+
**手動發布(僅緊急情況)**:
|
|
223
|
+
```bash
|
|
224
|
+
npm run release # 一般情況請勿使用,優先使用 GitLab CI 自動發布
|
|
214
225
|
|
|
215
226
|
```
|
|
216
227
|
|
|
@@ -322,7 +333,7 @@ npm whoami # 確認登入狀態
|
|
|
322
333
|
| 開發套件 | `npm run dev-udi` |
|
|
323
334
|
| 切換回正常模式 | `npm run get-udi-o` |
|
|
324
335
|
| 套件監聽編譯 | `npm run watch` (在 udi-package) |
|
|
325
|
-
| 發布新版本 |
|
|
336
|
+
| 發布新版本 | 由 GitLab CI 自動處理 |
|
|
326
337
|
| 檢查登入狀態 | `npm whoami` |
|
|
327
338
|
|
|
328
339
|
### 檢查清單
|
|
@@ -341,6 +352,6 @@ npm whoami # 確認登入狀態
|
|
|
341
352
|
|
|
342
353
|
**發布套件前**
|
|
343
354
|
|
|
344
|
-
- [ ] 所有變更已 commit
|
|
345
|
-
- [ ]
|
|
346
|
-
- [ ]
|
|
355
|
+
- [ ] 所有變更已 commit 並推送到 GitLab
|
|
356
|
+
- [ ] 確認 GitLab CI Pipeline 執行成功
|
|
357
|
+
- [ ] GitLab CI 會自動處理版本發布
|