GitHub Actions
Next.js CI/CD Workflow Pack for GitHub Actions: CI, Preview, Release, Audit
8 GitHub Actions workflows for Next.js: CI on Node 20/22, Vercel previews with PR comments, production deploys, releases, audits, CodeQL, E2E.
What you get: 1 file · 16.92 KB · ZIP
See purchase optionsProduct description
A ready set of GitHub Actions workflows for Next.js and other Node.js projects. Copy the .github folder into your repository, add four package.json scripts and you have CI, preview deploys, production deploys, releases and security checks running on every pull request.
What is inside
- ci.yml: lint, type check, unit tests on Node 20 and 22, production build with the
.next/cacherestored between runs, build size table in the job summary. - preview.yml: Vercel preview deploy for every pull request and one sticky PR comment with the URL (updated on each push, skipped for forks).
- deploy-production.yml: deploys main to Vercel production only after CI passed on the same commit, then smoke-tests the live URL.
- release.yml: one click bumps patch, minor, major or prerelease, tags, and publishes a GitHub Release with generated notes. Pushing a tag works too.
- dependency-audit.yml: dependency review blocks PRs that add high or critical advisories; a weekly audit of production dependencies opens or updates one issue.
- codeql.yml: CodeQL code scanning for JavaScript and TypeScript.
- e2e.yml: Playwright tests against a production build, browsers cached, report uploaded on failure.
- pr-checks.yml: Conventional Commit title check and size/XS to size/XL labels.
- setup-project composite action: detects npm, pnpm or yarn (classic and Berry) from the lockfile, installs Node with dependency caching, runs a frozen install. Monorepo folder input included.
- dependabot.yml, release notes categories, PR template, example
playwright.config.ts, smoke test and the scripts block the workflows expect.
Tested
- All 8 workflows and the composite action pass actionlint 1.7.12 with shellcheck enabled.
- The package manager detection was run against npm, pnpm, yarn classic, yarn Berry, monorepo and missing-lockfile fixtures.
- The exact commands the workflows run (install, lint, tsc, vitest, next build, npm audit, playwright test) were executed on a fresh Next.js 15.5 app.
Requirements
- GitHub repository with Actions enabled and a committed lockfile.
- package.json scripts: lint, typecheck, test, build, start. pnpm projects need a packageManager field.
- Vercel account for the two deploy workflows (three secrets: token, org id, project id). Not on Vercel? The other six workflows work on their own.
- CodeQL on private repositories needs GitHub Code Security.
Setup
Copy .github into your repo, add the missing scripts, add the three Vercel secrets, open a pull request. The README walks through every step, including protected branches and monorepos.
Licence
Commercial licence: use in unlimited own and client projects. You may not resell or redistribute the workflow pack itself.
What you get
1 file · 16.92 KB
- Nextjs-CICD-Workflow-Pack.zipZIP · 16.92 KB
GitHub Actions
Next.js CI/CD Workflow Pack for GitHub Actions: CI, Preview, Release, Audit
8 GitHub Actions workflows for Next.js: CI on Node 20/22, Vercel previews with PR comments, production deploys, releases, audits, CodeQL, E2E.
Getly opened the uploaded files and found nothing that would stop them opening. It is not a virus scan or a quality rating.
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 1 file - ZIP - 16.92 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$15.00


