github-actions-specialist

Automate GitHub Actions workflows for CI/CD and GitHub Pages deployments.

Updated Jul 13, 2023
One-click install
npx skills add https://github.com/changgenglu/changgenglu-blog --skill github-actions-specialist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-specialist
Source: https://github.com/changgenglu/changgenglu-blog/tree/main/.gemini/skills/github-actions-specialist
Command: npx skills add https://github.com/changgenglu/changgenglu-blog --skill github-actions-specialist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams automate CI/CD workflows and GitHub Pages deployment, removing manual steps and ensuring consistent builds and deployments.

Core Features & Use Cases

  • Workflow design standards: Guidelines to trigger on push and PR, ensure environment consistency with actions/setup-node, and deterministic installs with npm ci or pnpm install --frozen-lockfile.
  • Deployment automation: Manage permissions with GITHUB_TOKEN and push built artifacts via reliable plugins like peaceiris/actions-gh-pages.
  • Quality gates: Run tests and lint before deployment and fail fast when issues are detected.

Quick Start

Create a GitHub Action workflow that runs tests on push and deploys to GitHub Pages when the build passes.

Frequently Asked Questions about github-actions-specialist

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

FAQPage Schema
How do I automate GitHub Pages deployment using GitHub Actions?

To automate GitHub Pages deployment, you can create a workflow that runs tests on push, uses actions/setup-node for environment consistency, and deploys built artifacts via the peaceiris/actions-gh-pages plugin.

What is the best way to ensure deterministic installs in a GitHub Actions CI/CD workflow?

Deterministic installs in GitHub Actions are ensured by using npm ci or pnpm install --frozen-lockfile, which strictly lock dependencies and prevent unexpected build failures across different CI environments.

Does GitHub Actions support triggering workflows on both push and pull requests?

Yes, GitHub Actions supports triggering workflows on both push and pull requests, which allows you to run tests and lint checks as quality gates before any code is merged or deployed.

How do I manage secrets and permissions with GITHUB_TOKEN for deployment?

Managing secrets with GITHUB_TOKEN involves configuring specific permissions in your workflow file to securely push built artifacts to GitHub Pages without exposing sensitive credentials.

Why does my GitHub Actions workflow fail before deploying to gh-pages?

Your GitHub Actions workflow may fail before deploying to gh-pages because it enforces quality gates that fail fast when tests or lint checks detect issues, preventing broken builds from deployment.

Can I use pnpm install --frozen-lockfile across multiple branches in GitHub Actions?

Yes, you can use pnpm install --frozen-lockfile across multiple branches in GitHub Actions by setting up actions/setup-node to ensure environment consistency for every push and pull request.