Skip to content

fix: support release PR creation with bot token#7

Merged
markbang merged 1 commit into
mainfrom
fix/release-pr-workflow-token
Mar 9, 2026
Merged

fix: support release PR creation with bot token#7
markbang merged 1 commit into
mainfrom
fix/release-pr-workflow-token

Conversation

@markbang
Copy link
Copy Markdown
Owner

@markbang markbang commented Mar 9, 2026

Summary

  • make the Changesets publish workflow prefer a dedicated CHANGESETS_GITHUB_TOKEN secret when creating release PRs
  • document the required repo setting / secret so release PR automation does not fail with the default Actions token restrictions

Testing

  • pnpm validate

Summary by cubic

Fixes release PR creation in the Changesets publish workflow by preferring a dedicated CHANGESETS_GITHUB_TOKEN and falling back to GITHUB_TOKEN. This unblocks automated release PRs on repos that restrict the default Actions token.

  • Bug Fixes

    • Workflow now uses ${{ secrets.CHANGESETS_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} for GITHUB_TOKEN.
    • Prevents failures when PR creation is disabled for the default token.
  • Migration

    • Add a CHANGESETS_GITHUB_TOKEN secret with repo write access, or enable Settings → Actions → General → “Allow GitHub Actions to create and approve pull requests”.

Written for commit 5b94ffa. Summary will update on new commits.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memos-embed-site Ready Ready Preview, Comment Mar 9, 2026 9:40am

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@markbang markbang merged commit b055e11 into main Mar 9, 2026
4 checks passed
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