Index of every page on this site: llms.txt
All skills
stealth-factory avatar

/pooled-release

@802887c
Run it yourself

Cut fewer, batched releases (a 'release train') instead of one per merge — by triggering semantic-release on demand or on a cadence rather than on every push to main. Use when releasing on every merge is too noisy, when you want one larger readable changelog per release, to add a manual 'cut a release' button (workflow_dispatch) or a scheduled/weekly release, to set up prerelease channels (next/beta → promote to stable), or when deciding whether you need a release branch.

Use this Skill: https://skilld.dev/gh/stealth-factory/skills/pooled-release

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencepooled-vs-unpooled.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Pooled vs unpooled releases — a visual walkthrough

A human-readable companion to ../SKILL.md. Same facts, drawn out.

The one idea to hold onto: semantic-release always releases "everything since the last tag." The pipeline is identical in both setups. The only thing that changes is when it fires — and that single change ripples into a few config differences.

1. What fires the release

In the unpooled setup, the merge is the trigger. In the pooled setup, the merge is decoupled — it just lands commits on main; a separate human click or cron event triggers the cut.

flowchart LR
    subgraph UP["UNPOOLED — semantic-release-automation"]
        direction TB
        M1[merge PR to main] --> T1{{"on: push: main"}}
        T1 --> R1[release.yml runs]
        R1 --> V1[cut a version]
    end
    subgraph PL["POOLED — pooled-release"]
        direction TB
        M2[merge PR to main] --> X[(nothing fires)]
        B["👤 click Run workflow<br/>⏰ or cron schedule"] --> T2{{"on: workflow_dispatch / schedule"}}
        T2 --> R2[release-on-demand.yml runs]
        R2 --> V2[cut ONE batched version]
    end

2. Same commits, different number of releases

This is the whole point — five merges map to a different number of releases:

                merge  merge  merge        merge  merge
  commits  ──────●──────●──────●────────────●──────●────────▶ time
                 │      │      │            │      │
  UNPOOLED      v1.1   v1.2   v1.3         v1.4   v1.5
  (per-push)     ▲      ▲      ▲            ▲      ▲
                 └ 5 merges  = 5 releases, 5 changelogs ┘

  POOLED                            ▼ Mon 09:00          ▼ click
  (on-demand)   ·······accumulate·······│·····accumulate·····│
                                      v1.1                  v1.2
                 └ 5 merges = 2 releases, 2 fat changelogs ┘

semantic-release does the batching in both cases. Pooling just means you tag less often, so each tag sweeps up more commits into one readable changelog.

3. Inside the pooled job

The steps are byte-for-byte the same as the unpooled release.yml; only the highlighted nodes differ.

flowchart TD
    A[workflow_dispatch or schedule fires] --> G{{"if: event == schedule<br/>OR ref_name == default_branch"}}
    G -- "dispatched from a feature branch" --> SKIP["job skips — no-op"]
    G -- "schedule, or ref == main" --> C["checkout · fetch-depth: 0<br/>full history + tags"]
    C --> N[setup-node · npm ci]
    N --> S["npx semantic-release<br/>→ analyze commits since last tag<br/>→ bump version, update CHANGELOG<br/>→ tag + GitHub Release + npm"]
    S --> P["pushes chore(release): x.y.z commit"]
    P --> END(("no re-trigger:<br/>there is no on: push"))

    style G fill:#fde68a,stroke:#d97706
    style END fill:#bbf7d0,stroke:#16a34a

4. The three config deltas — and why each one

Changing the trigger forces three downstream changes. This is the part that's easy to get wrong if you only swap the on: line.

Aspect Unpooled (release.yml) Pooled (release-on-demand.yml) Why it changes
Trigger on: push: [main] on: workflow_dispatch (+ optional schedule) The whole point — decouple merge from release
Loop guard if: !startsWith(… 'chore(release):') required dropped semantic-release pushes a chore(release): commit. Under on: push that re-triggers the workflow → infinite loop. With no push trigger, nothing re-fires, so the guard is dead weight
Branch guard not needed (push only ever comes from main) if: github.event_name == 'schedule' || github.ref_name == default_branch added workflow_dispatch lets a human pick any branch in the Actions dropdown (or gh workflow run --ref). Without the guard, a manual run could analyze/publish from a feature or prerelease branch instead of main. The schedule clause is required: on cron runs github.event.repository is empty, so the bare ref check would be main == '' → false and skip every scheduled run
Concurrency group: release-${{ github.ref }} (per-branch) group: release (one global lane) Pooled runs are pinned to main anyway, so the button and cron share one serialization lane and can't collide on the tag push

5. Which one should you use?

                Releasing on every merge is fine?
                          │
              ┌───────────┴───────────┐
            YES                        NO  (too noisy / want readable changelogs)
              │                         │
        UNPOOLED                   POOLED — pick a trigger:
   (per-push release.yml)       ┌──────────┼─────────────┐
                            button       cron        prerelease
                       workflow_dispatch schedule    next/beta channel
                         (default)     (weekly)     (continuous pre +
                                                     promote to stable)

The honest summary: pooled is not a different release engine. It's the same semantic-release pipeline with the trigger moved off push, plus the two guards that swap as a consequence of that move — drop the loop guard, add the branch guard.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill provides configuration templates and documentation for implementing batched release cycles using GitHub Actions and semantic-release. It follows security best practices by pinning Actions to specific commit hashes and utilizing standard secret management for CI/CD tokens. It is identified as having a minor vulnerability surface for indirect prompt injection through commit message parsing.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: MEDIUM · 1 issue

Signed by skilld at 802887c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 4 weeks ago
Other metadata
metadata
{
  "author": "stealth-factory",
  "co-author": "wiiiimm",
  "version": "1.2.2"
}

README badge

README badge for stealth-factory/skills/pooled-release