diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a66f50..b43f29d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -146,11 +146,17 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: Build Web Panel + - name: Build Web Panel (skip if no source; use committed dist/) working-directory: ostp-control + shell: bash run: | - npm install - npm run build + if [ -f package.json ]; then + npm install && npm run build + else + echo "ostp-control has no package.json — using committed dist/" + mkdir -p dist + [ -f dist/index.html ] || echo '