Snippets / Tags
github-actions
8 github-actions code snippets across 1 language. Copy-paste solutions from production code.
8
snippets
github actions
8 snippetsCache npm Dependencies in GitHub Actions
Cache the npm store between GitHub Actions runs to cut install time from minutes to seconds. Lockfile-aware cache key included.
Create a GitHub Release When a Version Tag is Pushed
A GitHub Actions workflow that creates a GitHub Release with auto-generated notes whenever a v* tag is pushed.
GitHub Actions Matrix Build Across Node.js Versions
A matrix strategy that runs your test suite on multiple Node.js versions in parallel. Essential for libraries that support older Node releases.
Next.js CI Workflow with Lint, Typecheck, and Build
A clean GitHub Actions workflow for Next.js projects: install, lint, typecheck, build. Cached, fast, and PR-ready.
Reusable GitHub Actions Workflow with workflow_call
Define a reusable Node.js setup workflow once and call it from any other workflow with workflow_call. Inputs, outputs, and secrets supported.
Scheduled GitHub Actions Workflow Hitting a Secured Endpoint
A GitHub Actions cron that pings a bearer-auth endpoint every N minutes. Use it for scheduled revalidation, health checks, or webhooks.
Skip CI When Only Documentation Changed
Use a paths filter or dorny/paths-filter to skip GitHub Actions CI runs when a PR only touches Markdown or docs files.
Sticky PR Preview Comment with github-script
Post or update a sticky comment on a pull request from GitHub Actions using actions/github-script. Perfect for preview links and build info.