ci(release): use app user (#11038)

* ci(release): set git user

* ci(release): refactor to use app

* ci(release): use only app token

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
ckohen
2025-08-16 14:05:36 -07:00
committed by GitHub
parent 9be62b35c9
commit ac290aea95
2 changed files with 12 additions and 7 deletions

View File

@@ -42,17 +42,23 @@ jobs:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
if: github.repository_owner == 'discordjs'
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.DISCORDJS_APP_ID }}
private-key: ${{ secrets.DISCORDJS_APP_KEY_RELEASE }}
permission-contents: write
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ inputs.ref || '' }}
ssh-key: ${{ secrets.DEPLOY_KEY_CI_RELEASE_TAGS }}
- name: Install Node.js v22
uses: actions/setup-node@v4
@@ -74,4 +80,4 @@ jobs:
dry: ${{ inputs.dry_run }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}