Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-run npm run bootstrap on Submodule Commit #22

Open
martyanovandrey opened this issue Oct 2, 2024 · 0 comments
Open

Auto-run npm run bootstrap on Submodule Commit #22

martyanovandrey opened this issue Oct 2, 2024 · 0 comments
Labels

Comments

@martyanovandrey
Copy link
Contributor

martyanovandrey commented Oct 2, 2024

Problem:
Whenever you make changes to a metapackage, you need to make sure that it will still collect all nested gitmodules and assemble correctly. If changes occur within submodules, it is crucial to ensure that the metapackage remains functional and integrative with updated submodules.

Proposed solution:
Set up a GitHub Action that triggers when a commit is made to any of the repositories listed in the .gitmodules file. This action should:

  1. Clone the metapackage repository.
  2. Run npm run bootstrap within the metapackage.
  3. Verify that everything has assembled correctly.

Steps to Implement:

  1. Create a GitHub Action workflow file (.github/workflows/bootstrap.yml).
  2. Set up triggers for the action based on updates to the submodules.
  3. Define steps to clone the repo, run npm run bootstrap, and validate the build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant