Christmas week’s deals are on the store’s live deals page, with the clementines at $3.99 a bag, and all three issues are closed. Generic Grocery Co.’s site now lives at its own address on GitHub Pages, every merge into main builds it and puts it live, and main only changes through a pull request with a green check.
In this summary, you’ll look back at how the week went and collect the habits you built in one place, so you can come back to them the next time a run turns red or a push is refused. This is also the end of the path, so you’ll see how its courses fit together.
Look Back at the Week
The week started with a refused push. The setup commit brought .github/workflows/check.yml, and GitHub won’t accept a push that adds or changes a workflow file from a token without the Workflows permission. You selected “Read and write” for that token’s Workflows permission, and the same push went through. A token gets the permissions its job needs, and you add one when the job grows.
Next, you read check.yml step by step and added Vite’s documented deploy workflow on a branch. Both files check out the repository, set up Node.js, install with npm ci, and build with npm run build. Between the install and the build, check.yml also lints and checks formatting.
But the two files run at different times. The check runs on every pull request into main and only checks, while the deploy runs on every push to main and publishes dist/.
The deploy’s first pull request failed at Check formatting because Vite’s file used single quotes, and npm run format fixed it.
Once you’d switched the Pages source to GitHub Actions and squash-merged, one push to main became one run, and the site appeared a minute or two later.