@@ -312,7 +312,7 @@ jobs:
312312 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
313313
314314 build-web :
315- name : Build web${{ matrix.demo && ' demo' || '' }}
315+ name : Build web${{ matrix.demo && ' demo and selfhosted ' || ' extensions ' }}
316316 needs : create-nightly-release
317317 if : needs.create-nightly-release.outputs.is_active == 'true'
318318 runs-on : ubuntu-24.04
@@ -381,9 +381,10 @@ jobs:
381381 CARGO_FEATURES : jpegxr${{ matrix.demo && ',webgpu' || '' }}
382382 FIREFOX_EXTENSION_ID : ${{ secrets.FIREFOX_EXTENSION_ID }} # Needed to inject into manifest.json
383383 WASM_SOURCE : cargo_and_store
384+ BUILD_COMMAND : ${{ matrix.demo && 'npm run build:dual-wasm-repro' || 'npm run build:repro' }}
384385 working-directory : web
385386 shell : bash -l {0}
386- run : npm run build:repro
387+ run : $BUILD_COMMAND
387388
388389 - name : Produce reproducible source archive
389390 if : ${{ !matrix.demo }}
@@ -407,7 +408,7 @@ jobs:
407408 run : npm run docs
408409
409410 - name : Publish npm package
410- if : ${{ ! matrix.demo }}
411+ if : matrix.demo
411412 # npm scoped packages are private by default, explicitly make public
412413 run : npm publish --access public --provenance
413414 continue-on-error : true
@@ -416,12 +417,12 @@ jobs:
416417 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
417418
418419 - name : Package selfhosted
419- if : ${{ ! matrix.demo }}
420+ if : matrix.demo
420421 run : zip -r "${{ needs.create-nightly-release.outputs.package_prefix }}-web-selfhosted.zip" .
421422 working-directory : web/packages/selfhosted/dist
422423
423424 - name : Upload selfhosted
424- if : ${{ ! matrix.demo }}
425+ if : matrix.demo
425426 run : |
426427 tag_name="${{ needs.create-nightly-release.outputs.tag_name }}"
427428 package_file="${{ needs.create-nightly-release.outputs.package_prefix }}-web-selfhosted.zip"
0 commit comments