mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 08:19:59 +00:00
fix(ci): use built-in GITHUB_TOKEN for release comments
Changes semantic-release to use the built-in GITHUB_TOKEN instead of PAT_TOKEN so that release comments appear from github-actions[bot] instead of the repository owner's personal account. PAT_TOKEN is still used for checkout to ensure downstream workflows can be triggered by the release commits.
This commit is contained in:
@@ -49,8 +49,10 @@ jobs:
|
|||||||
id: release
|
id: release
|
||||||
env:
|
env:
|
||||||
HUSKY: 0
|
HUSKY: 0
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
# Use built-in GITHUB_TOKEN for bot identity on comments/releases
|
||||||
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
|
# PAT_TOKEN is only used for checkout (to trigger downstream workflows)
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -48,8 +48,10 @@ jobs:
|
|||||||
id: release
|
id: release
|
||||||
env:
|
env:
|
||||||
HUSKY: 0
|
HUSKY: 0
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
# Use built-in GITHUB_TOKEN for bot identity on comments/releases
|
||||||
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
|
# PAT_TOKEN is only used for checkout (to trigger downstream workflows)
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user