The current GitHub Actions workflow is triggering on PRs targeting the main branch, which causes gh pages to attempt to deploy each PR. This is problematic both for PRs from forks and dependabot, as those PRs will not have permissions to deploy to gh pages, and it would result in PRs that have not yet been approved to override the existing deployment on gh pages.
This change removes the pr trigger from the publish workflow and adds a new workflow for checking prs. Currently this only tests that the PR builds both the njwds assets and the associated docs (there are no current tests to run in addition).
Summary
The current GitHub Actions workflow is triggering on PRs targeting the main branch, which causes gh pages to attempt to deploy each PR. This is problematic both for PRs from forks and dependabot, as those PRs will not have permissions to deploy to gh pages, and it would result in PRs that have not yet been approved to override the existing deployment on gh pages.
This change removes the pr trigger from the publish workflow and adds a new workflow for checking prs. Currently this only tests that the PR builds both the njwds assets and the associated docs (there are no current tests to run in addition).
Test Plan
This PR should serve as its own test.