
GitHub Actions Has a Free CI/CD That Most Developers Underuse
GitHub Actions gives you 2,000 free CI/CD minutes per month. But most developers only use it for basic tests. Here are workflows you should be running. 1. Auto-label PRs by file path name : Auto Label on : [ pull_request ] jobs : label : runs-on : ubuntu-latest steps : - uses : actions/labeler@v5 with : repo-token : ${{ secrets.GITHUB_TOKEN }} Changes in src/api/ ? Auto-labeled backend . Changes in src/components/ ? Auto-labeled frontend . 2. Dependency update PRs # .github/dependabot.yml version : 2 updates : - package-ecosystem : npm directory : / schedule : interval : weekly open-pull-requests-limit : 10 Dependabot creates PRs for outdated packages. Merge with one click. 3. Deploy preview on every PR name : Preview on : pull_request jobs : deploy : runs-on : ubuntu-latest steps : - uses : actions/checkout@v4 - run : npm ci && npm run build - uses : FirebaseExtended/action-hosting-deploy@v0 with : repoToken : ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount : ${{ secrets.FIREBASE_S
Continue reading on Dev.to Webdev
Opens in a new tab




