From 493350e62a681cdf92617e7e595154460fe85d9c Mon Sep 17 00:00:00 2001 From: Fiona Date: Sun, 13 Sep 2026 16:27:45 -0700 Subject: [PATCH] ci: build hvigor-plugin before assembling the OHPM packages The demo's hvigorfile imports the in-repo symbol upload plugin from its build output, and hvigor loads every module's hvigorfile even when it assembles a single HAR. The build output is not committed, so on a clean checkout no module built and the publish job failed before packaging. --- .github/workflows/publish-ohpm.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish-ohpm.yml b/.github/workflows/publish-ohpm.yml index 5ec72ed..a97d414 100644 --- a/.github/workflows/publish-ohpm.yml +++ b/.github/workflows/publish-ohpm.yml @@ -122,6 +122,16 @@ jobs: ohpm config set publish_registry "$OHPM_PUBLISH_REGISTRY" ohpm install + # hvigor loads every module's hvigorfile, and the demo's imports the + # in-repo symbol upload plugin from its build output, which is not + # committed. Without it no module builds, including the SDK HARs. + - name: Build hvigor-plugin + working-directory: hvigor-plugin + run: | + set -euo pipefail + npm ci + npm run build + - name: Build HAR packages run: | set -euo pipefail