Skip to content

Conversation

@lightninglu10
Copy link
Contributor

Summary

Adds a verification step in the GitHub Actions release workflow to ensure all WASM artifacts are present before publishing to npm.

Problem

In the current workflow, the "Combine WASM artifacts" step uses:

cp "$dir"/*.wasm swc/ 2>/dev/null || true

This command silently ignores missing WASM files (|| true suppresses errors). If any of the matrix build jobs fail to produce artifacts, the publish step will proceed with an incomplete package, leading to runtime errors when users try to use the missing bands.

Solution

Added a new "Verify all WASM files present" step that:

  1. Checks for WASM files from all four bands: v0_82_87, v26, v42, v48
  2. Lists each found artifact for visibility
  3. Fails the workflow with a clear error message if any band is missing
  4. Displays a summary of total WASM files found

This ensures the workflow fails fast before publishing an incomplete package, making it immediately clear when a matrix job has failed.

Testing

The verification step will:

  • Pass when all matrix jobs complete successfully and produce artifacts
  • Fail with a descriptive error if any band's WASM file is missing
  • Provide clear output for debugging which specific bands are missing

Add verification step in release workflow to ensure all WASM artifacts
are present before publishing to npm. This prevents incomplete packages
from being published if any matrix build job fails.

The verification checks for WASM files from all four bands:
- v0_82_87
- v26
- v42
- v48

If any band is missing artifacts, the workflow will fail with a clear
error message before reaching the publish step. This replaces the
silent failure behavior of the previous "cp ... || true" command.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❇️ CodePress Review Summary

👋 Hey team,

Overall the changes look great! No specific issues found.

Here's the quick rundown:

✅ Decision: APPROVE
The added verification step improves release safety and has no identified blocking issues. Risks are maintenance-related (band list, paths) but not merge-blocking.

@lightninglu10 lightninglu10 merged commit 75ccb8c into main Nov 29, 2025
8 checks passed
@lightninglu10 lightninglu10 deleted the fix/wasm-artifact-verify branch November 29, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants