Section: Jobs, steps, and conditionals

Allow a non-blocking step

yaml
yaml
- name: Optional audit
  continue-on-error: true
  run: npm audit
Explanation

Useful for advisory checks that should not fail the pipeline yet.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Jobs, steps, and conditionals
Check out repository code
Fetch the repo in a workflow job.
OpenIn sheetyamlsame section
Set up Node.js
Install a specific Node.js version for the job.
OpenIn sheetyamlsame section
Run a step only on main
Use expressions with `if` to gate steps.
OpenIn sheetyamlsame section
Run a job only for tags
Gate a full job on a tag-based release.
OpenIn sheetyamlsame section
Test across multiple Node versions
Use a strategy matrix for version coverage.
Run on multiple operating systems
Validate portability across Linux, macOS, and Windows.