Uh oh!
There was an error while loading. Please reload this page.
chore: add Biome, CI workflows, and Cloudflare deploy - #14
Merged
Conversation
- dependabot: npm + github-actions ecosystems, grouped updates, 7-day cooldown - biome.yml: run Biome checks on push/PR to main - build.yml: install and build on push/PR to main (Node 22, 24) - deploy.yml: deploy to Cloudflare Workers via wrangler-action on push to main
Replace the pre-commit auto-format hook with a pre-push gate that runs the same `biome ci ./src` as CI, so a passing hook guarantees passing CI and no longer mutates staged files. Add organizeImports to the editor's save actions so saved files already match CI, and give package.json a trailing newline.
On main the Deploy workflow already builds and uses the output, so building again in the Build workflow was redundant. Build validation now runs on PRs.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up code quality tooling, CI, and automated deployment.
Biome
@biomejs/biome(2.5.8, pinned) andbiome.jsonconfigured with formatter (2-space indent, double quotes), linter (recommended + style rules), import organization, and Tailwind CSS directive support. Ignoresdist,node_modules,.astro, andpublic.formatandlintnpm scripts and apackageManagerfield (pnpm@10.32.0)..vscode/settings.json(format-on-save with Biome) and recommend the Biome extension.srccodebase with Biome (quote style + import ordering).Pre-commit hook
.githooks/pre-commitformats stagedsrcfiles with Biome and re-stages them so commits stay formatted.preparescript that pointscore.hooksPathat.githooks.Dependabot & CI workflows
.github/dependabot.yml—npmandgithub-actionsecosystems, grouped patch/minor updates, 7-day cooldown, major updates ignored..github/workflows/biome.yml— runsbiome ci ./srcon push/PR tomain..github/workflows/build.yml— installs deps and builds on push/PR tomain(Node 22 and 24).Deploy
.github/workflows/deploy.yml— builds and deploys to Cloudflare Workers viacloudflare/wrangler-action@v4.0.0(SHA-pinned), triggered only on push tomain. Uses the existingCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDsecrets.Notes
persist-credentials: falseon checkout.biome cipasses (3 pre-existingnoNonNullAssertionwarnings in SEO JSON-LD components remain as non-blocking warnings).pnpm buildsucceeds andbiome ci ./srcexits clean.