Skip to content

Commit 7080e4b

Browse files
committed
build: remove distributable bundle publishing step
1 parent a23181e commit 7080e4b

File tree

1 file changed

+13
-54
lines changed

1 file changed

+13
-54
lines changed

tools/scripts/npm_publish

Lines changed: 13 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -474,46 +474,6 @@ update_namespace_dependency_versions() {
474474
return 0
475475
}
476476

477-
# Generates and publishes distributable bundles.
478-
publish_bundles() {
479-
echo 'Publishing distributable bundles...' >&2
480-
make dist-bundles-publish
481-
if [[ "$?" -ne 0 ]]; then
482-
echo '' >&2
483-
echo 'Error: unexpected error. Encountered an error when attempting to publish distributable bundles.' >&2
484-
echo '' >&2
485-
return 1
486-
fi
487-
echo 'Successfully published distributable bundles.' >&2
488-
489-
echo '' >&2
490-
echo 'Removing bundle artifacts...' >&2
491-
make clean-dist-bundles
492-
if [[ "$?" -ne 0 ]]; then
493-
echo '' >&2
494-
echo 'Error: unexpected error. Encountered an error when attempting to remove bundle artifacts.' >&2
495-
echo '' >&2
496-
return 1
497-
fi
498-
echo 'Successfully removed bundled artifacts.' >&2
499-
500-
if [[ -n "$(git status --porcelain)" ]]; then
501-
echo '' >&2
502-
echo 'Committing changes...' >&2
503-
git add -A && git commit -m 'build: update dist versions'
504-
if [[ "$?" -ne 0 ]]; then
505-
echo '' >&2
506-
echo 'Error: unexpected error. Unable to commit changes.' >&2
507-
echo '' >&2
508-
return 1
509-
fi
510-
echo 'Successfully committed changes.' >&2
511-
fi
512-
echo '' >&2
513-
514-
return 0
515-
}
516-
517477
# Creates (and pushes) a new Git tag.
518478
create_tag() {
519479
echo 'Creating a new tag...' >&2
@@ -656,16 +616,19 @@ main() {
656616

657617
# TODO: ensure that all package CLIs are executable
658618

659-
update_markdown_related
660-
if [[ "$?" -ne 0 ]]; then
661-
revert_changes
662-
on_error 1
663-
fi
664-
update_markdown_package_urls
665-
if [[ "$?" -ne 0 ]]; then
666-
revert_changes
667-
on_error 1
668-
fi
619+
# TODO: consider removing, so long as we are comfortable relying on GitHub workflows to periodically update related packages
620+
# update_markdown_related
621+
# if [[ "$?" -ne 0 ]]; then
622+
# revert_changes
623+
# on_error 1
624+
# fi
625+
626+
# update_markdown_package_urls
627+
# if [[ "$?" -ne 0 ]]; then
628+
# revert_changes
629+
# on_error 1
630+
# fi
631+
669632
update_repl_docs
670633
if [[ "$?" -ne 0 ]]; then
671634
revert_changes
@@ -684,10 +647,6 @@ main() {
684647

685648
# WARNING: at this point, we are at the point of no return and, from this point forward, cannot easily revert changes to the local repository as packages may already be published...
686649

687-
# publish_bundles # FIXME: re-enable bundle publishing once determine cause for test failures
688-
# if [[ "$?" -ne 0 ]]; then
689-
# on_error 1
690-
# fi
691650
create_tag
692651
if [[ "$?" -ne 0 ]]; then
693652
on_error 1

0 commit comments

Comments
 (0)