How do you automate releases with release-please?
IntermediateConceptDebugging, Cost, Monorepos & Releases
Answer
release-please reads Conventional Commits on main, maintains a release PR that bumps versions and updates CHANGELOG.md, and when that PR is merged, creates the tag and GitHub Release.
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-24.04
steps:
- id: rp
uses: googleapis/release-please-action@v4
with:
release-type: node
token: ${{ steps.app.outputs.token }} # App token so the tag triggers workflows
Downstream jobs use if: steps.rp.outputs.release_created and steps.rp.outputs.tag_name. semantic-release is the fully automatic alternative without a release PR.
More on Debugging, Cost, Monorepos & Releases
How do you enable debug logging, and what does each flag show?BeginnerWhat tools help you inspect a run from the terminal?BeginnerHow is GitHub Actions billed for private repos, and what are the multipliers?IntermediateName the top ways to reduce Actions minutes and wall-clock time.IntermediateHow do you build only the services that changed in a monorepo?AdvancedWhy are workflow-level `paths` filters problematic with required checks, and what is the fix?Intermediate