From 14854c0b5bdb864c273053fa4f8e686b7b0e21dd Mon Sep 17 00:00:00 2001 From: Nejc Drobnic Date: Tue, 7 Apr 2026 16:55:50 +0200 Subject: [PATCH 1/4] ci: add release token fallback --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f16176c..9a38803 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,5 +38,7 @@ jobs: commit: Version packages title: Version packages env: - GITHUB_TOKEN: ${{ github.token }} + # Fall back to the default workflow token, but allow a PAT/App token + # because GitHub can block PR creation with `github.token` at the repo level. + GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN || github.token }} NPM_CONFIG_PROVENANCE: true From aa4b4405858a264d94b1ba2308f19bd2140fa6f3 Mon Sep 17 00:00:00 2001 From: Nejc Drobnic Date: Tue, 7 Apr 2026 16:55:56 +0200 Subject: [PATCH 2/4] docs: note release PR permissions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 86a0cdd..539cd48 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,8 @@ bun run changeset Merges to `main` open or update a Changesets release pull request with the pending version and changelog updates. Merging that release pull request publishes the package to npm and creates a GitHub release. +If GitHub Actions fails with `GitHub Actions is not permitted to create or approve pull requests`, either enable `Allow GitHub Actions to create and approve pull requests` in the repository Actions settings or add a `RELEASE_GITHUB_TOKEN` secret with repo write access. The release workflow prefers that secret and otherwise falls back to the default workflow token. + Routine CI, config, or docs-only changes do not need a changeset unless a maintainer decides they should be released. This repo does not add PR-level changeset enforcement. ## Configuration From 4289e47612c7cca0ccf1537e4316645f5b303636 Mon Sep 17 00:00:00 2001 From: Nejc Drobnic Date: Tue, 7 Apr 2026 17:16:54 +0200 Subject: [PATCH 3/4] docs: remove release permission note --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 539cd48..86a0cdd 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,6 @@ bun run changeset Merges to `main` open or update a Changesets release pull request with the pending version and changelog updates. Merging that release pull request publishes the package to npm and creates a GitHub release. -If GitHub Actions fails with `GitHub Actions is not permitted to create or approve pull requests`, either enable `Allow GitHub Actions to create and approve pull requests` in the repository Actions settings or add a `RELEASE_GITHUB_TOKEN` secret with repo write access. The release workflow prefers that secret and otherwise falls back to the default workflow token. - Routine CI, config, or docs-only changes do not need a changeset unless a maintainer decides they should be released. This repo does not add PR-level changeset enforcement. ## Configuration From 9eb2c8c21b9c46425fbffdb8950c5dee5a84083b Mon Sep 17 00:00:00 2001 From: Nejc Drobnic Date: Tue, 7 Apr 2026 17:17:39 +0200 Subject: [PATCH 4/4] docs: remove release section --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index 86a0cdd..78d4d64 100644 --- a/README.md +++ b/README.md @@ -27,18 +27,6 @@ Place the plugin source in your project's `.opencode/plugins/` directory (or `~/ } ``` -## Releasing - -For publishable changes, add a changeset with: - -```sh -bun run changeset -``` - -Merges to `main` open or update a Changesets release pull request with the pending version and changelog updates. Merging that release pull request publishes the package to npm and creates a GitHub release. - -Routine CI, config, or docs-only changes do not need a changeset unless a maintainer decides they should be released. This repo does not add PR-level changeset enforcement. - ## Configuration All configuration is via environment variables: