Skip to content

Conversation

JordanChen123
Copy link
Contributor

Description

Adding a GitHub Actions workflow to automatically build the website for every commit and push.

This workflow ensures that the website is always in a buildable state by running npm run build, catching any type errors, lint issues, or build failures early during development.

It triggers on pushes to main as well as to any branches branching off main.

Verification

  • [ ]

Resources

@@ -0,0 +1,29 @@
name: Website Build Check

on:
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey Jordan, my suggestion is we restrict what triggers this workflow a bit more.
My thinking is that it should only run when files related to the website have been changed.
I did this for the Docs Site workflow and it really sped things up for PRs and pushes that didn't involve docs src files.

What are your thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I completely agree, this would be a lot more efficient. Will add this change

push:
branches:
- main
- '**'
Copy link
Contributor

Choose a reason for hiding this comment

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

I also don't think it should run on pushes to any other branch than main since being triggered on pull requests should catch anything before we merge it in.

@FireBoyAJ24 FireBoyAJ24 added the web Website team label May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web Website team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants