Skip to content

Commit fcf55a3

Browse files
committed
feat(chore): restore pat
1 parent 940f75b commit fcf55a3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# fetch-depth is necessary to get all tags
1515
# otherwise lerna can't detect the changes and will end up bumping the versions for all packages
1616
fetch-depth: 0
17-
token: ${{ secrets.GITHUB_TOKEN }}
17+
token: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
1818
persist-credentials: false
1919
- name: Setup Node
2020
uses: actions/setup-node@v3
@@ -26,8 +26,9 @@ jobs:
2626
run: |
2727
git config --global user.name $CONFIG_USERNAME
2828
git config --global user.email $CONFIG_EMAIL
29-
git remote set-url origin https://[email protected]/sourcefuse/llm-chat-component
29+
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/sourcefuse/llm-chat-component
3030
env:
31+
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
3132
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}
3233
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }}
3334

@@ -41,5 +42,5 @@ jobs:
4142
npm config set provenance true
4243
npx semantic-release
4344
env:
44-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
GH_TOKEN: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
4546
HUSKY: 0

0 commit comments

Comments
 (0)