01What is GitHub Actions Generator?
Most CI pipelines for JavaScript projects follow the same shape: check out the code, install Node, install dependencies, test, build, maybe ship. Writing that YAML by hand is easy to get slightly wrong, so this generator builds it from a handful of switches. The syntax follows GitHub's official workflow syntax docs for the on, permissions, jobs, needs and strategy.matrix keys. You choose a Trigger (push, pull_request, release, schedule or manual, which emits workflow_dispatch), set Branches and a Node Version, then tick the jobs you want. Every workflow starts with a read-only permissions: contents: read block, which is the least-privilege default GitHub recommends for GITHUB_TOKEN. Test checks out the repo with actions/checkout@v7, runs actions/setup-node@v7 with optional npm caching, then npm ci and npm test. Matrix OS turns that job into an Ubuntu, macOS and Windows matrix. Your Node version goes first, followed by the 22, 24 and 26 lines, with duplicates removed. Node 20 reached end of life in April 2026, so the default is 24. Build runs npm run build and uploads dist/ as an artifact named build with upload-artifact@v7. When Test is also on, build gets needs: test. Docker gets its own packages: write permission, logs in to ghcr.io with GITHUB_TOKEN and pushes an image tagged with the commit SHA. It uses buildx and the GitHub Actions cache, and lowercases the image name for you. Deploy can target Vercel or AWS S3. For Vercel it follows Vercel's documented CLI flow: vercel pull, vercel build --prod, then vercel deploy --prebuilt --prod. For AWS it downloads the build artifact, configures credentials with configure-aws-credentials@v6 and runs aws s3 sync dist/. Deploy waits on the other jobs. It is limited to main for push, manual and scheduled runs, and runs on any published release. Here's a quick example. Pick pull_request, tick Test, Build and Deploy, and choose Vercel. You get test and build jobs, but the deploy job is swapped for a comment, because PR runs (including forks) should not push to production. Some honest limits. It only knows npm, so pnpm, Yarn and Bun users will need to edit the install lines. The build path is fixed at dist/. Action versions were checked against each project's latest release in November 2026 and will drift. Secrets are referenced by name, never filled in.
JavaScript and TypeScript developers who want a working npm-based CI file with test, build, GHCR and Vercel or S3 deploy jobs without writing the YAML from scratch. The tool runs entirely in your browser, so your data never leaves your device.
02How to use GitHub Actions Generator
- Fill in Workflow Name and choose a Trigger (manual means workflow_dispatch).
- Set Node Version and Branches, comma-separated for more than one.
- Tick Test, Build, Deploy, Docker, Cache and Matrix OS as needed.
- Pick a Deploy Target (None, Vercel or AWS S3) and set Docker Image if Docker is on.
- Copy the YAML and save it as a .yml file under .github/workflows/ in your repository.
03Worked examples
- Input:
Defaults: name CI/CD, trigger push, branches main, Node 24, Test + Build + Cache - Result:
name: "CI/CD" on: push: branches: [main] permissions: contents: read jobs: test: runs-on: ubuntu-latest … needs: test … - run: npm ci - run: npm run build - uses: actions/upload-artifact@v7 with: name: build path: dist/ # change to your build output folder - With Build ticked after Test, the build job gets needs: test and uploads dist/ as an artifact named build.
- Input:
Trigger: pull_request; Branches: main, develop; Test + Matrix OS + Cache (Build off) - Result:
name: "CI/CD" on: pull_request: … runs-on: ${{ matrix.os }} … os: [ubuntu-latest, macos-latest, windows-latest] node-version: [24, 22, 26] … node-version: ${{ matrix.node-version }} … - run: npm test - Matrix OS runs the test job on Ubuntu, macOS and Windows and puts your Node version first in the list followed by the LTS lines 22 and 26 (duplicates removed).
- Input:
Trigger: pull_request; Test + Build + Deploy; Deploy Target: Vercel - Result:
name: "CI/CD" on: pull_request: … # deploy job omitted: pull_request runs (including forks) should not deploy to production - On a pull_request trigger the deploy job is replaced by a comment, because PR runs (including forks) should not deploy to production.
- Input:
Example "Docker build"; Docker Image: MyApi - Result:
name: "Docker Build" … packages: write # required to push to ghcr.io with GITHUB_TOKEN … - uses: actions/checkout@v7 - uses: docker/setup-buildx-action@v4 - uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v7 with: push: true tags: ghcr.io/${{ github.repository }}/myapi:${{ github.sha }} # repository path must be lowercase cache-from: type=gha cache-to: type=gha,mode=max - The docker job asks for packages: write so GITHUB_TOKEN can push to ghcr.io, and the image name is lowercased (MyApi becomes myapi).
- Input:
Example "Release" (trigger release, Build + Docker + Deploy, Deploy Target: AWS S3) - Result:
name: "Release" on: release: types: [published] … deploy: … needs: [build, docker] steps: - uses: actions/checkout@v7 - uses: actions/download-artifact@v8 with: name: build path: dist/ - uses: aws-actions/configure-aws-credentials@v6 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - run: aws s3 sync dist/ s3://${{ secrets.S3_BUCKET }} - A release trigger skips the main-branch if: guard on deploy, and the AWS job downloads the build artifact before running aws s3 sync.
04Common use cases
- Bootstrapping CI for a new Node, React or Next.js repository that has npm test and npm run build scripts
- Adding a Docker image build that pushes to GitHub Container Registry using only GITHUB_TOKEN
- Setting up a release workflow that builds and deploys to S3 when a GitHub release is published
- Running tests nightly on a schedule to catch breakage from a moving dependency
- Checking that a library passes on Windows and macOS as well as Linux with the Matrix OS option
- Giving a newer teammate a readable, commented starting file for learning Actions syntax
05Tips
- GHCR image names must be lowercase. If your GitHub user or organisation name has capital letters, replace ${{ github.repository }} in the tag with a lowercase path.
- The build step uploads dist/. Change the path if your build writes somewhere else (for example build/ for Create React App, or out/ for a static Next.js export).
- For AWS, prefer OpenID Connect (role-to-assume plus permissions: id-token: write) over long-lived access keys stored as secrets.
- The schedule trigger uses cron 0 0 * * *, which is midnight UTC; adjust it for your time zone.
- Store VERCEL_TOKEN, AWS keys and S3_BUCKET under Settings > Secrets and variables > Actions before the first run.
06Related concepts
GitHub Actions, CI/CD, Workflow YAML, Build matrix, GHCR, Secrets.
Frequently Asked Questions
What is GitHub Actions Generator?
GitHub Actions Generator is a free, browser-based developer tool on AIDToolStack. Generate GitHub Actions workflow YAML It requires no installation or sign-up and works entirely in your browser.
Is GitHub Actions Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does GitHub Actions Generator store my data?
No. It runs in your browser; nothing is uploaded.