Skip to content

ci: open version release pull request with github app token - #135

Merged
bzp2010 merged 1 commit into
mainfrom
bzp/ci-release-github-app-token
Nov 30, 2026
Merged

bzp2010 merged 1 commit into
mainfrom
bzp/ci-release-github-app-token

Conversation

@bzp2010

@bzp2010 bzp2010 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

The default GITHUB_TOKEN never starts other workflows, so ci.yml did not run on the Version Packages pull request (#133) and needed a manual approval. The release job now creates a GitHub App token with actions/create-github-app-token, the same way the release workflows in api7/yap do, and passes it to changesets/action. The branch, the pull request, the tag and the GitHub Release are made with that token. The workflow permissions drop to contents: read plus id-token: write for npm Trusted Publishing.

The repository variable RELEASE_APP_CLIENT_ID and the secret RELEASE_APP_PRIVATE_KEY are required. CONTRIBUTING.md and CLAUDE.md describe the setup. The workflow can only be verified by the first release run after merging.

@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ed1565a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@api7/ui-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

  • Last reviewed commit: none yet
  • Latest commit, not reviewed: 4a2c76f

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@bzp2010 bzp2010 self-assigned this Nov 30, 2026
The default GITHUB_TOKEN never starts other workflows, so ci.yml did not run on the Version Packages pull request. The release job now gets a GitHub App token and passes it to changesets/action, which makes the branch, the pull request, the tag and the GitHub Release with it. The workflow permissions drop to read for contents, and the docs describe the App setup.
@bzp2010
bzp2010 force-pushed the bzp/ci-release-github-app-token branch from ed1565a to 4a2c76f Compare November 30, 2026 10:44
@bzp2010 bzp2010 changed the title ci: open the Version Packages pull request with a GitHub App token ci: open version release pull request with github app token Nov 30, 2026
@bzp2010

bzp2010 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai pause

@bzp2010
bzp2010 marked this pull request as ready for review November 30, 2026 10:48
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown
Action performed

Reviews paused.

@bzp2010
bzp2010 merged commit b9889d4 into main Nov 30, 2026
2 checks passed
@bzp2010
bzp2010 deleted the bzp/ci-release-github-app-token branch November 30, 2026 10:51
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