Commit c492fac
authored
fix(ci): use RELEASE_TOKEN to bypass protected branch in semantic-release (#152)
* fix(ci): use RELEASE_TOKEN to bypass protected branch in semantic-release
GITHUB_TOKEN cannot push to a branch protected by PR requirement.
RELEASE_TOKEN (PAT with repo scope) must be created as a repository
secret and added to branch protection bypass rules.
Closes #151
* fix(ci): replace RELEASE_TOKEN PAT with GitHub App token for protected branch push
Uses actions/create-github-app-token to generate a short-lived token
from a GitHub App that has branch protection bypass permissions.
Secrets required: RELEASE_APP_ID, RELEASE_APP_PRIVATE_KEY.1 parent eb1cdfe commit c492fac
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | | - | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
47 | | - | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
0 commit comments