cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
607 stars 80 forks source link

fix: default latest tag #575

Closed elrrrrrrr closed 1 year ago

elrrrrrrr commented 1 year ago

closes #574 Fixed the issue where custom tags in publishConfig prevented the default latest tag.

  • 🧶 Modified the savePackageVersion API, automatically add latest tag if no latest tag.
  • 🧶 The publish tag parameter has been changed to tags, triggering corresponding events in batches.
  • ♻️ No changes to the package synchronization process.

    closes #574 修复 publishConfig 中自定义 tag,导致 latest tag 未设置的问题

  • 🧶 修改 savePackageVersion 接口,如果当前包未配置 latest tag,则自动补全
  • 🧶 publish tag 参数改为 tags,对应事件分批触发
  • ♻️ 包同步流程不做修改

cc @shinima @peachscript

codecov[bot] commented 1 year ago

Codecov Report

Merging #575 (3b9e2ac) into master (73b4383) will increase coverage by 0.00%. Report is 1 commits behind head on master. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #575   +/-   ##
=======================================
  Coverage   96.99%   96.99%           
=======================================
  Files         175      175           
  Lines       16774    16792   +18     
  Branches     2202     2208    +6     
=======================================
+ Hits        16270    16288   +18     
  Misses        504      504           
Files Changed Coverage Δ
app/core/service/PackageManagerService.ts 98.87% <100.00%> (+<0.01%) :arrow_up:
...controller/package/SavePackageVersionController.ts 100.00% <100.00%> (ø)