From c9c0feee1135ccac1c03c9304b88e6473e295801 Mon Sep 17 00:00:00 2001 From: pvyazankin Date: Fri, 5 Jun 2026 13:36:51 +0200 Subject: [PATCH] fix: restore block-tools publish/mark-stable scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both scripts were silently dropped in d60844a ("PyTorch added, matrix size selection added", Apr 30) — the diff line "block/package.json | 2 --" went unmentioned in the body. From v0.6.0 onward npm publish stopped running `block-tools publish`, so the block-pack never reached s3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/ (i.e. https://blocks.pl-open.science/v2/milaboratories/gpu-test//manifest.json returns 404 for 0.6.0, 0.7.0, 0.7.1; 0.3.7–0.5.2 are still there). Desktop's block picker still shows 0.5.2 as the latest as a result. Sibling repo platforma-open/titeseq-analysis still carries both scripts — restored copy matches that template verbatim. --- .changeset/restore-block-publish.md | 7 +++++++ block/package.json | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/restore-block-publish.md diff --git a/.changeset/restore-block-publish.md b/.changeset/restore-block-publish.md new file mode 100644 index 0000000..1ab3bb0 --- /dev/null +++ b/.changeset/restore-block-publish.md @@ -0,0 +1,7 @@ +--- +"@platforma-open/milaboratories.gpu-test": patch +--- + +Restore `prepublishOnly` and `mark-stable` scripts in `block/package.json`. + +Both were silently dropped in commit `d60844a` ("PyTorch added, matrix size selection added", Apr 30) — the diff line `block/package.json | 2 --` slipped in unmentioned in the body. Effect: from v0.6.0 onward, `pnpm -r publish` no longer uploaded the block-pack to `s3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/`, so versions 0.6.0 / 0.7.0 / 0.7.1 never reached `https://blocks.pl-open.science/v2/milaboratories/gpu-test//manifest.json` and never showed up in the Desktop block picker (still pinned at 0.5.2, the last version published before the regression). npm and the software registry kept working — only the block-registry upload was broken. Sibling repo `platforma-open/titeseq-analysis` still carries both scripts; restoring matches that template. diff --git a/block/package.json b/block/package.json index 9452681..4b881e1 100644 --- a/block/package.json +++ b/block/package.json @@ -3,6 +3,8 @@ "version": "0.7.1", "scripts": { "build": "shx rm -rf ./block-pack && block-tools pack", + "mark-stable": "block-tools mark-stable -r 's3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/?region=eu-central-1'", + "prepublishOnly": "block-tools pack && block-tools publish -r 's3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/?region=eu-central-1'", "do-pack": "shx rm -f *.tgz && block-tools pack && pnpm pack && shx mv *.tgz package.tgz" }, "files": [