github-actions-templates

Create GitHub Actions workflow YAML files for testing, building, and deploying applications.

Updated Sep 1, 2021
One-click install
npx skills add https://github.com/WP-Coaching/pellegrims.coach --skill github-actions-templates-wp-coaching
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-actions-templates
Source: https://github.com/WP-Coaching/pellegrims.coach/tree/main/.agents/skills/github-actions-templates
Command: npx skills add https://github.com/WP-Coaching/pellegrims.coach --skill github-actions-templates-wp-coaching

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve? Writing CI/CD pipelines from scratch is error-prone and time-consuming, especially when configuring matrix builds, Docker registry pushes, Kubernetes deployments, and security scans with correct syntax and permissions. ## Core Features & Use Cases - Workflow Templates: Provides ready-to-adapt YAML patterns for test automation, Docker image builds, Kubernetes deployments, matrix builds, and security scanning. - Best Practices Guidance: Covers pinned action versions, dependency caching, secrets handling, reusable workflows, and approval-gated production deployments. - Use Case: When setting up CI for a Node.js project, generate a test workflow with a Node version matrix, npm caching, lint and test steps, and coverage upload in one pass. ## Quick Start Ask the assistant to create a GitHub Actions workflow that runs tests on Node 18 and 20 for every pull request to main.

Frequently Asked Questions about github-actions-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub Actions workflow for Node.js testing?▼

Define a workflow triggered on push and pull_request, use actions/setup-node with a matrix of Node versions, cache npm dependencies, then run npm ci, lint, and test steps. Coverage results can be uploaded with codecov/codecov-action.

How to build and push Docker images in GitHub Actions?▼

Use docker/login-action to authenticate to a registry like ghcr.io, docker/metadata-action to generate tags from branches and semver tags, and docker/build-push-action with GitHub Actions cache for layer caching.

Can GitHub Actions deploy to a Kubernetes cluster?▼

Yes. Configure cloud credentials with an action like aws-actions/configure-aws-credentials, update kubeconfig for your cluster, then run kubectl apply and kubectl rollout status to deploy and verify the rollout.

What are reusable workflows in GitHub Actions?▼

Reusable workflows are defined with the workflow_call trigger and accept typed inputs and secrets. Other workflows invoke them with the uses keyword, passing parameters like node-version to avoid duplicating pipeline logic.

Why should I pin GitHub Actions to specific versions?▼

Pinning actions to major versions like @v4 instead of @latest prevents unexpected breaking changes and reduces supply-chain risk. It ensures workflow behavior stays consistent across runs and repositories.

How do I add approval gates before production deployment?▼

Attach an environment with required reviewers to the deployment job in the workflow YAML. GitHub pauses the run until a reviewer approves, and the job can also expose the deployment URL for traceability.