ci-validation-gates

Automate CI/CD validation gates for semver, npm tokens, retries, and draft releases.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/Leep-GH/Lee-s-squad --skill ci-validation-gates-leep-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ci-validation-gates
Source: https://github.com/Leep-GH/Lee-s-squad/tree/main/.copilot/skills/ci-validation-gates
Command: npx skills add https://github.com/Leep-GH/Lee-s-squad --skill ci-validation-gates-leep-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Defensive CI/CD patterns to prevent invalid semver, wrong tokens, and missing retry/draft protections from causing outages.

Core Features & Use Cases

  • Semver Validation Gate: validate version format before npm publish to avoid 4-part versions being mangled.
  • NPM Token Type Verification: ensure automation tokens are used, not user tokens with 2FA.
  • Retry Logic for Propagation: account for npm registry eventual consistency with multiple attempts.
  • Draft Release Detection: trigger on release: published events, not drafts, to avoid silent failures.
  • Build Protection: guardrails to prevent accidental bumps or builds during release.

Quick Start

Configure your release pipeline to run these gates on every release to enforce versioning, token verification, propagation retry, and draft checks.

Frequently Asked Questions about ci-validation-gates

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

FAQPage Schema
How do I validate semver versions in a CI/CD pipeline before publishing to npm?

To validate semver versions in a CI/CD pipeline, you can enforce a validation gate that checks the version format before npm publish to prevent 4-part versions from being mangled. This ensures only correctly formatted semantic versions are released.

Why does my npm publish automation fail with a token error in CI?

Your npm publish automation might fail in CI if it uses a user token with 2FA instead of an npm automation token. Verifying the NPM token type ensures automation tokens are used, preventing authentication failures during automated releases.

How do I prevent silent failures caused by draft releases in automated workflows?

To prevent silent failures from draft releases in automated workflows, you can implement draft release detection to trigger actions only on published release events. This guard ensures the pipeline ignores drafts and processes only finalized releases.

How do I handle npm registry eventual consistency during package propagation?

To handle npm registry eventual consistency during package propagation, you can implement retry logic with multiple attempts. This accounts for propagation delays, ensuring downstream release steps wait for the registry to synchronize successfully.

Can I use these CI/CD validation gates for non-npm based release workflows?

These CI/CD validation gates are specifically designed for automated release workflows across npm-based projects. They enforce semver checks, NPM automation token verification, and draft-release detection tailored to that environment.