fix(release): tolerate optional plugin beta tag mirror failure · openclaw/openclaw@bf0f547
steipete
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -166,8 +166,13 @@ fi
|
166 | 166 | for dist_tag in "${mirror_dist_tags[@]}"; do |
167 | 167 | [[ -n "${dist_tag}" ]] || continue |
168 | 168 | echo "Mirroring ${package_name}@${package_version} onto dist-tag ${dist_tag}" |
169 | | - NPM_CONFIG_USERCONFIG="${mirror_userconfig}" \ |
170 | | - npm dist-tag add "${package_name}@${package_version}" "${dist_tag}" |
| 169 | +if ! NPM_CONFIG_USERCONFIG="${mirror_userconfig}" \ |
| 170 | + npm dist-tag add "${package_name}@${package_version}" "${dist_tag}"; then |
| 171 | +if [[ "${mirror_auth_requirement}" == "required" ]]; then |
| 172 | +exit 1 |
| 173 | +fi |
| 174 | +echo "Warning: optional npm dist-tag mirror failed for ${package_name}@${package_version} -> ${dist_tag}; published package remains live." >&2 |
| 175 | +fi |
171 | 176 | done |
172 | 177 | fi |
173 | 178 | ) |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。