Bundle repeated shell steps into a reusable local action.
Section: Matrix, reuse, and services
Composite action metadata
yaml
yaml
name: setup-project
runs:
using: "composite"
steps:
- run: npm ci
shell: bash
- run: npm run build
shell: bashExplanation
Composite actions are useful for local step reuse without creating a full JavaScript or Docker action.
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 Matrix, reuse, and services
Test across multiple Node versions
Use a strategy matrix for version coverage.
Run on multiple operating systems
Validate portability across Linux, macOS, and Windows.
Start a PostgreSQL service container
Run integration tests against a database service.
Call a reusable workflow
Centralize shared CI logic in one workflow file.