Skip to content

ci(release): bypass main protection via GitHub App token + bump-type input#5

Merged
rgdevme merged 3 commits into
mainfrom
chore/release-app-token-and-bump-choice
May 18, 2026
Merged

ci(release): bypass main protection via GitHub App token + bump-type input#5
rgdevme merged 3 commits into
mainfrom
chore/release-app-token-and-bump-choice

Conversation

@rgdevme
Copy link
Copy Markdown
Owner

@rgdevme rgdevme commented May 18, 2026

Summary

  • GitHub App token for the push. The release workflow's post-publish commit to main was rejected by branch protection on v0.0.4 (GH006: Protected branch update failed), leaving npm published but main out of sync. The workflow now mints an installation token from a dedicated GitHub App (secrets RELEASE_APP_ID and RELEASE_APP_PRIVATE_KEY) and uses it for actions/checkout and the final git push. The App is added to the main ruleset's bypass list.
  • bump choice input instead of free-form version string. workflow_dispatch now exposes a bump choice (patch / minor / major, default patch). pnpm version <type> --no-git-tag-version applies it in lockstep across all 8 packages; the new version is read back from packages/core/package.json into $VERSION for the rest of the job. The semver-regex validation step is gone — no longer needed.

rgdevme added 3 commits May 18, 2026 21:00
…input

Two changes to .github/workflows/release.yml:

1. Mint an installation token from a dedicated GitHub App (secrets
   RELEASE_APP_ID and RELEASE_APP_PRIVATE_KEY) and use it for both
   actions/checkout and the final git push. The App is added to the
   main ruleset's bypass list, so the post-publish commit/tag push
   can land on protected main. Replaces the previous use of the
   default GITHUB_TOKEN, which was rejected by branch protection.

2. Replace the free-form `version` string input with a `bump` choice
   (patch | minor | major). pnpm version <type> --no-git-tag-version
   computes the new version in lockstep across all 8 packages; we
   read it back from packages/core/package.json into \$VERSION for
   the rest of the job. Drops the semver-regex validation step
   (no longer needed).
@rgdevme rgdevme merged commit 8e51aa7 into main May 18, 2026
1 check passed
@rgdevme rgdevme deleted the chore/release-app-token-and-bump-choice branch May 18, 2026 19:05
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