chore: release version bumps [skip ci]
This commit is contained in:
parent
e2259f39ec
commit
4a0ceb17e3
@ -250,9 +250,13 @@ publish_package() {
|
|||||||
final_tgz="$(find "$work_dir" -maxdepth 1 -name '*.tgz' | sort | tail -1)"
|
final_tgz="$(find "$work_dir" -maxdepth 1 -name '*.tgz' | sort | tail -1)"
|
||||||
[ -z "$final_tgz" ] && { warn "Repack failed for $name@$version — skipping"; SKIPPED+=("$name@$version (repack failed)"); return; }
|
[ -z "$final_tgz" ] && { warn "Repack failed for $name@$version — skipping"; SKIPPED+=("$name@$version (repack failed)"); return; }
|
||||||
|
|
||||||
|
# Write a temp .npmrc with the auth token — inline --// flags are unreliable
|
||||||
|
local tmp_npmrc="$work_dir/.npmrc"
|
||||||
|
printf '//%s:_authToken=%s\n' "$AUTH_TARGET" "$TOKEN" > "$tmp_npmrc"
|
||||||
|
|
||||||
if npm publish "$final_tgz" \
|
if npm publish "$final_tgz" \
|
||||||
--registry "$REGISTRY_URL" \
|
--registry "$REGISTRY_URL" \
|
||||||
"--//${AUTH_TARGET}:_authToken=${TOKEN}" 2>&1; then
|
--userconfig "$tmp_npmrc" 2>&1; then
|
||||||
ok "$name@$version published"
|
ok "$name@$version published"
|
||||||
PUBLISHED+=("$name@$version")
|
PUBLISHED+=("$name@$version")
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user