Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:1mcp app Agent Release Pipeline Workflow

From Leeroopedia
Knowledge Sources
Domains CI_CD, Release_Management
Last Updated 2026-10-29 00:00 GMT

Overview

Concrete GitHub Actions workflow that orchestrates the full 1MCP release lifecycle—input validation, version bump, candidate identification, CI gates, native security checks, npm packaging, binary builds, Docker images, npm/GitHub publication, release-branch creation, and evidence summary.

Description

The release-pipeline.yml workflow is a manually dispatched (`workflow_dispatch`) pipeline that drives the entire release process for 1MCP. It accepts a target ref (main or release branch), a version string, and an optional recovery run ID for resuming failed releases. The pipeline progresses through staged jobs: `validate` resolves inputs and derives version/tag/branch metadata, `update-version` bumps the version file, `candidate` verifies the exact release SHA, then `ci`, `native-security`, `package`, `binaries`, and `docker` run in parallel as build/validation gates. Only after all gates succeed does `release` publish to npm and create the GitHub Release. The `finalize` job creates or fast-forwards the release branch, and `summary`/`attach-summary` collect and attach truthfulness-verified release evidence. Recovery runs skip the build/validation jobs and resume from the publication stage.

Usage

Use this workflow when you need to:

  • Cut a new 1MCP release (stable or pre-release) from main or a maintenance branch
  • Resume a failed release from a specific stage via `recovery_run_id`
  • Understand the gate ordering and required checks before publication
  • Trace which artifacts (npm, binaries, Docker) are produced for a release

Code Reference

Source Location

Signature

name: Release Pipeline

on:
  workflow_dispatch:
    inputs:
      target_ref:
        description: 'New release source: main or release-<major>.<minor>'
        required: false
        default: main
        type: string
      version:
        description: 'New release version: X.Y.Z or X.Y.Z-<prerelease>'
        required: false
        type: string
      recovery_run_id:
        description: 'Explicit owner resume: original Release Pipeline run ID'
        required: false
        type: string

# Jobs: validate → update-version → candidate → [ci, native-security,
#   package, binaries, docker] → release → finalize → summary → attach-summary

Import

# Triggered via GitHub Actions workflow_dispatch:
# gh workflow run release-pipeline.yml \
#   -f target_ref=main \
#   -f version=1.2.3

I/O Contract

Inputs

Name Type Required Description
target_ref string No Source ref: `main` or `release-<major>.<minor>`; defaults to `main`
version string No Semantic version `X.Y.Z` or `X.Y.Z-<prerelease>`; empty for recovery
recovery_run_id string No Original Release Pipeline run ID to resume from

Outputs

Name Type Description
npm package tgz artifact Published to npm with derived tag (latest/prerelease)
GitHub Release release object Created with attached binary and summary artifacts
Docker images OCI images Published to GitHub Container Registry
release-X.Y branch git ref Created or fast-forwarded to the release SHA
release-summary.json artifact Truthful release evidence with gate results

Usage Examples

Triggering a New Release

# Trigger a new release from main with version 1.2.3
gh workflow run release-pipeline.yml \
  -f target_ref=main \
  -f version=1.2.3

# Trigger a pre-release
gh workflow run release-pipeline.yml \
  -f target_ref=main \
  -f version=1.2.3-beta.1

Resuming a Failed Release

# Resume from a specific failed run, skipping build/validation gates
gh workflow run release-pipeline.yml \
  -f recovery_run_id=12345678901

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment