Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.10.0"
}
9 changes: 9 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "go",
"include-v-in-tag": true,
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
"skip-github-release": true,
"packages": {
".": {}
}
}
45 changes: 45 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: release-please

# default token permissions: none
permissions: {}

on:
push:
branches:
- main
workflow_dispatch:
inputs:
dry-run:
description: "Dry run — preview the release PR without creating or modifying anything"
type: boolean
default: false

jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write # create the release PR, changelog commit and tag
pull-requests: write # open and update the release PR
issues: write # label the release PR

steps:
# GITHUB_TOKEN-authored pushes never trigger other workflows, so a tag
# created with it would not fire the tag-triggered goreleaser workflow.
# RELEASE_PLEASE_CLIENT_ID/_APP_PRIVATE_KEY currently hold the same
# GitHub App credentials as HOMEBREW_APP_ID/_PRIVATE_KEY. client-id (not
# app-id): create-github-app-token deprecated app-id in favor of it.
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # ratchet:actions/create-github-app-token@v3.2.0
id: app-token
with:
client-id: ${{ secrets.RELEASE_PLEASE_CLIENT_ID }}
private-key: ${{ secrets.RELEASE_PLEASE_APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
permission-issues: write

- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # ratchet:googleapis/release-please-action@v5.0.0
with:
token: ${{ steps.app-token.outputs.token }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
skip-github-pull-request: ${{ inputs.dry-run == true }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated