Skip to content

ci(release): let release-please use a PAT so the release PR's CI runs - #12

Draft
kermitsxb wants to merge 1 commit into
mainfrom
ci/release-please-token
Draft

kermitsxb wants to merge 1 commit into
mainfrom
ci/release-please-token

Conversation

@kermitsxb

Copy link
Copy Markdown
Owner

Why

The release PR is opened by release-please with GITHUB_TOKEN, so its Build and release run stays in action_required ("1 workflow awaiting approval") until a maintainer approves it.

What

  • release-please-action uses secrets.RELEASE_PLEASE_TOKEN, falling back to github.token when the secret is missing (current behaviour).
  • README: documents the secret (fine-grained PAT on this repo, Contents + Pull requests read/write).

To do after merge

Create the RELEASE_PLEASE_TOKEN repository secret. The next release-please update of the release PR will then trigger its build without approval.

Tag pushes stay inert: the workflow only listens to pull_request and pushes to main.

Runs triggered by GITHUB_TOKEN on the release PR wait for maintainer approval.
Use the RELEASE_PLEASE_TOKEN secret when set, falling back to GITHUB_TOKEN.
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.

1 participant