Skip to content

feat: support for prerelease and prerelease-type (#1101)#1181

Draft
nickreynke wants to merge 1 commit intogoogleapis:mainfrom
nickreynke:feat/#1101/prerelease-and-versioning
Draft

feat: support for prerelease and prerelease-type (#1101)#1181
nickreynke wants to merge 1 commit intogoogleapis:mainfrom
nickreynke:feat/#1101/prerelease-and-versioning

Conversation

@nickreynke
Copy link

@nickreynke nickreynke commented Jan 31, 2026

Add support for prerelease and prerelease-type fields for the newest release-please version.

Closes #1101.

@google-cla
Copy link

google-cla bot commented Jan 31, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@nickreynke nickreynke force-pushed the feat/#1101/prerelease-and-versioning branch 2 times, most recently from 13e035d to 1663cc3 Compare January 31, 2026 16:53
@nickreynke
Copy link
Author

Also closes #1178.

@nickreynke
Copy link
Author

@ferrarimarco Would you have some time soon to review this PR? :)

@nickreynke nickreynke force-pushed the feat/#1101/prerelease-and-versioning branch 2 times, most recently from 6360cb1 to c2cb949 Compare February 8, 2026 21:54
Add support for prerelease and prerelease-type fields for the newest release-please version.
@nickreynke nickreynke force-pushed the feat/#1101/prerelease-and-versioning branch from c2cb949 to 3f9a46c Compare February 8, 2026 22:13
@nickreynke
Copy link
Author

nickreynke commented Feb 8, 2026

I tried to fix some problems while using the current version of this PR in a private project of mine. The current version of the project is 0.5.0 (released and present in the .release-please-manifest.json file). When pushing to the develop branch I expected it would create a release-please PR for version 0.6.0-beta but instead created one for 0.6.0. I still can not figure out why...

Here's my release-please.yml GitHub Workflow:

name: Release

on:
  push:
    branches:
      - main
      - develop

permissions:
  contents: write
  pull-requests: write

jobs:
  release-please:
    runs-on: ubuntu-latest
    outputs:
      release_created: ${{ steps.release.outputs.release_created }}
      pr: ${{ steps.release.outputs.pr }}
      tag_name: ${{ steps.release.outputs.tag_name }}
    steps:
      - uses: actions/checkout@v6.0.1

      - uses: nickreynke/release-please-action@3f9a46cb2d21d6f7f9da0f5edb099ab0c076d330
        id: release
        with:
          token: ${{ secrets.RELEASER_PAT }}
          target-branch: ${{ github.ref_name }}
          prerelease: ${{ github.ref_name != 'main' }}
          prerelease-type: 'beta'

My release-please-config.json being the following:

{
  "release-type": "simple",
  "extra-files": [
    "README.md"
  ],
  "packages": {
    ".": {
      "changelog-path": "CHANGELOG.md",
      "release-type": "simple",
      "bump-minor-pre-major": false,
      "bump-patch-for-minor-pre-major": false,
      "draft": false
    }
  },
  "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

@nickreynke nickreynke marked this pull request as draft February 8, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing versioning and prerelease action inputs

1 participant