GitHub Actions Generator
Scaffold a CI workflow in seconds.
Workflow options
.github/workflows/ci.yml
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
run: npm ci
- name: Test
run: npm test
- name: Build
run: npm run build
About this tool
Choose a language and triggers to scaffold a .github/workflows CI file with checkout, setup, install, test, and build steps.
How to use
- Pick the language/runtime and version.
- Choose triggers (push, pull_request) and steps.
- Copy the workflow into .github/workflows/ci.yml.
Examples
Trigger
on:
push:
branches: [main]Frequently asked questions
Into .github/workflows/ in your repository, with a .yml extension.