Skip to content

Conversation

AnuKritiW
Copy link
Contributor

This PR adds a GitHub Actions workflow that automatically builds and commits the distribution (dist) files whenever relevant source files are changed.

Motivation

Currently, updates to src/ require a manual build step to regenerate wgsl_reflect.node.js, wgsl_reflect.module.js, and their corresponding source maps. This can lead to outdated build artifacts being published to npm or used in dependent projects.

Automating this ensures:

  • The dist files are always in sync with the latest source changes.
  • Reduced manual overhead and human error.
  • Immediate availability of the latest fixes and features when installing from GitHub.

Note: The workflow should not make a redundant commit if the build files are already up to date.


I’m not sure if this approach aligns with the project’s workflow, so feel free to disregard if it doesn’t fit your process.

@brendan-duncan
Copy link
Owner

I'll think about this one some more. So far it hasn't been an issue, but it wouldn't hurt, either. I'll get through my work day and come back to this.

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