agentleFS
shalombshalomb/agent-skills/skills/release-please/SKILL.md

release-please

Skill3 starsChanged 3 months agoMITView on GitHub

Set up and operate Google release-please for automated changelog, version bumping, and GitHub Release creation driven by Conventional Commits. Use when adding release automation to a repo, diagnosing release-please failures, or understanding why a Release PR hasn't appeared. Triggers on "release-please", "automate releases", "release PR", "conventional commits versioning".

  • Commits and pushes

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you fix publish.yml after tagging, the fix won't apply until the next release.

    line 120
  2. Distinctive:

    Check the workflow ran (push to main should trigger it)

    line 126
  3. Very specific:

    Verify permissions: contents: write, pull-requests: write in workflow

    line 127
  4. Very specific:

    Check commits use Conventional Commits format — chore:/docs:/ci: do NOT create a Release PR, only feat: and fix: do

    line 128
  5. Very specific:

    Check .release-please-manifest.json has the correct current version — if it's ahead of any tag, release-please has nothing to release

    line 129
  6. Very specific:

    Use --merge (not --squash) when merging the Release PR:

    line 166

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

release-please

Automates the release cycle: reads Conventional Commits → opens a Release PR (bumps version + updates CHANGELOG) → merging the PR creates a GitHub Release → downstream publish workflow triggers.

Required files

release-please-config.json          # package config
.release-please-manifest.json       # current version (release-please owns this)
.github/workflows/release-please.yml

release-please-config.json

{
  "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
  "release-type": "python",
  "packages": {
    ".": {
      "release-type": "python",
      "package-name": "mypackage",
      "changelog-path": "CHANGELOG.md",
      "bump-minor-pre-major": true,
      "extra-files": [
        {
          "type": "toml",
          "path": "pyproject.toml",
          "jsonpath": "$.project.version"
        }
      ]
    }
  }
}

Supported release-type values: python, node, rust, go, java, simple. For node the version lives in package.json automatically — no extra-files needed.

.release-please-manifest.json

Seed with the current released version before the first run:

{ ".": "1.2.3" }

release-please updates this file on every Release PR merge. Never edit manually.

release-please.yml

name: Release Please

on:
  push:
    branches: [main]

permissions:
  contents: write
  pull-requests: write

jobs:
  release-please:
    runs-on: ubuntu-latest
    outputs:
      release_created: ${{ steps.release.outputs.release_created }}
      tag_name: ${{ steps.release.outputs.tag_name }}
    steps:
      - uses: googleapis/release-please-action@v5
        id: release
        with:
          config-file: release-please-config.json
          manifest-file: .release-please-manifest.json

Use @v5 not @v4. v4 → v5 was a breaking rename of config options.

How it works

Conventional Commit pushed to main
  → release-please opens/updates Release PR
    → human merges PR
      → GitHub Release + tag created  ← downstream publish triggers here

The Release PR contains:

  • Updated CHANGELOG.md (grouped by feat/fix/chore)
  • Bumped version in pyproject.toml (or package.json etc.)
  • Updated .release-please-manifest.json

Semver bump rules from Conventional Commits:

Commit typeBump
feat:minor
fix:, perf:, refactor:patch
feat!: or BREAKING CHANGE: footermajor
chore:, docs:, ci:no bump

Wiring a downstream publish workflow

The publish workflow must trigger on release: [published] — NOT on tag push. release-please creates a GitHub Release, which fires release: published.

on:
  release:
    types: [published]

Critical: GitHub Actions runs the workflow from the tag ref, not HEAD. If you fix publish.yml after tagging, the fix won't apply until the next release.

Common failures and fixes

Release PR never appears

  1. Check the workflow ran (push to main should trigger it)
  2. Verify permissions: contents: write, pull-requests: write in workflow
  3. Check commits use Conventional Commits format — chore:/docs:/ci: do NOT create a Release PR, only feat: and fix: do
  4. Check .release-please-manifest.json has the correct current version — if it's ahead of any tag, release-please has nothing to release

startup_failure on release-please workflow

Almost always an Actions permissions policy issue. See github-actions-permissions skill.

release-please failed: <!DOCTYPE html>

GitHub API rate limit or transient timeout during commit backfill (release-please scans up to 500 commits looking for the last release tag). Transient — re-run or wait. The Release PR is usually already created before the timeout.

Release PR bumps to wrong version (e.g. 0.6.1 instead of 0.6.0)

The manifest was seeded at 0.6.0 but no v0.6.0 tag exists on the repo. release-please sees 0.6.0 as "unreleased" and bumps past it.

Fix: create the tag manually before the first release-please run:

git tag v0.6.0 <sha>
git push origin v0.6.0

Or accept the bump — the version number is cosmetic.

Publish workflow didn't fire after Release PR merged

The release: published event is only fired by GitHub when the Release is published. release-please creates the Release automatically but occasionally the event doesn't propagate to workflows (especially bot-created releases).

Workaround — toggle draft to re-fire the event:

RELEASE_ID=$(gh api repos/OWNER/REPO/releases/latest --jq '.id')
gh api repos/OWNER/REPO/releases/$RELEASE_ID --method PATCH --field draft=true
gh api repos/OWNER/REPO/releases/$RELEASE_ID --method PATCH --field draft=false

Squash vs merge for Release PRs

Use --merge (not --squash) when merging the Release PR:

gh pr merge 22 --repo OWNER/REPO --merge

Squash changes the commit SHA that release-please uses to track the release boundary, which can confuse the next Release PR.

Version file locations by ecosystem

EcosystemFilejsonpath / field
Pythonpyproject.toml$.project.version
Node.jspackage.jsonautomatic
RustCargo.toml$.package.version
Genericany fileuse extra-files with type: generic and regex

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.