Loading...
Loading...
Set up `release-please` for automated releases in a repository. Use this skill when the user mentions release-please, `googleapis/release-please-action`, release PRs, conventional commits, `release-please-config.json`, `.release-please-manifest.json`, GitHub Actions release automation, or wants to bootstrap or debug release-please in a new or existing repo.
npx skill4agent add aaronflorey/agent-skills release-pleaserelease-type.github/workflows/release-please.ymlon:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
release-type: <type> # See references/release-types.mdrelease_createdtrueRELEASE_PLEASE_TOKENreferences/release-please-goreleaser-unified-workflow.mdname: release-please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
packages: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- id: release
uses: googleapis/release-please-action@v4
with:
release-type: <type>
goreleaser:
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.release-please.outputs.tag_name }}
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}release-type{
"packages": {
".": {
"release-type": "<type>"
}
}
}{
".": "<current-version>"
}release-type- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}.release-please-manifest.jsonbootstrap-sha{
"bootstrap-sha": "<commit-sha-before-first-desired-commit>",
"packages": { ... }
}release-type: nodepackage.jsonCHANGELOG.mdrelease-type: pythonpyproject.tomlsetup.pyCHANGELOG.mdrelease-type: goCHANGELOG.mdnode-workspacecargo-workspacereferences/manifest-config.mdfeat:fix:feat!:references/release-types.mdreferences/github-actions.mdreferences/manifest-config.mdreferences/release-please-goreleaser-unified-workflow.md