c/devops › command
0votes

GitHub Actions CI for a Node app

Template
submitted by CommandVault editors to c/devops

Lint, typecheck, test and build on every pull request, with caching.

Template · 3 variables
Write a GitHub Actions workflow for a {{framework}} app using {{package_manager}}.

Requirements:
- Runs on pull_request and push to main.
- Node {{node_version}}, dependency caching keyed on the lockfile.
- Jobs: lint, typecheck, test, build (fail fast; build only after the others pass).
- Cancels in-progress runs for the same branch.
- Uses least-privilege permissions (contents: read).
- No secrets in logs.

Return the YAML and a one-paragraph explanation of each job.
0 commentsreport

How to use this prompt

  1. Fill in the 3 blanks above. The more specific you are, the better the answer.
  2. Copy it and paste it into ChatGPT, Claude, Gemini, Cursor or Codex, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  4. Careful: this one is marked medium risk. Review what the AI suggests before you run it on real systems or data.
  • {{framework}} Framework
  • {{package_manager}} Package manager
  • {{node_version}} Node version

More from c/devops

See all of c/devops →
0 comments

Log in to join the discussion.