CI/CD & Automation
This template comes with pre-configured GitHub Actions and Dependabot settings to automate maintenance and deployment.
Dependabot
We use GitHub Dependabot to keep dependencies up to date. The configuration is located in .github/dependabot.yml.
It is configured to monitor two separate package ecosystems:
- Root Application: Checks
package.jsonin the root directory. - Documentation: Checks
docs/package.jsonin the docs directory.
Customizing Updates
You can modify .github/dependabot.yml to change the update frequency or grouping.
yaml
# .github/dependabot.yml
updates:
- package-ecosystem: "npm"
directory: "/docs"
schedule:
interval: "weekly" # Options: daily, weekly, monthlyGitHub Pages Deployment
The documentation is automatically deployed to GitHub Pages whenever you push changes to the main branch that affect the docs/ folder.
The workflow is defined in .github/workflows/deploy-docs.yml.
Setup Instructions
To enable this for your repository:
- Go to your repository on GitHub.
- Navigate to Settings > Pages.
- Under Build and deployment, select GitHub Actions as the source.
- The next time you push to
main, theDeploy Docs to Pagesworkflow will run, and your site will be live.
Workflow Details
The workflow performs the following steps:
- Checkout: Clones the repository.
- Setup: Installs Node.js and pnpm.
- Build: Runs
pnpm buildinside thedocs/folder. - Deploy: Uploads the
docs/.vitepress/distartifact to GitHub Pages.
You can customize the trigger in the workflow file:
yaml
# .github/workflows/deploy-docs.yml
on:
push:
branches: ["main"]
paths:
- "docs/**" # Only triggers if files in docs/ change