Skip to content

Commit

Permalink
ci: use PAT for actions with GitHub
Browse files Browse the repository at this point in the history
We need to use personal access token (PAT) to properly trigger workflows
when we merge branches and push via CI.
  • Loading branch information
lesha1201 committed Nov 27, 2023
1 parent c112e52 commit af5a439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
fetch-depth: 0
ref: main
token: ${{ secrets.CI_GITHUB_PAT }}

- name: Merge canary into main
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Release
run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

sync-canary:
Expand All @@ -34,6 +34,7 @@ jobs:
with:
fetch-depth: 0
ref: canary
token: ${{ secrets.CI_GITHUB_PAT }}

- name: Back-merge main into canary
run: |
Expand Down

0 comments on commit af5a439

Please sign in to comment.